-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnuxt.config.ts
119 lines (107 loc) · 2.69 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
export default defineNuxtConfig({
modules: [
'nuxt-icon',
'nuxt-svgo',
'@nuxtjs/google-fonts',
"@nuxt/image",
"@nuxtjs/sitemap",
"@nuxtjs/supabase",
'@nuxtjs/robots',
],
supabase: {
redirectOptions: {
include: ['/interne(/*)?'],
login: '/auth/login',
callback: '/interne',
},
},
robots: {
rules: {
UserAgent: '*',
Disallow: ['/interne', '/auth/new-password', '/auth/reset-password'],
}
},
typescript: {
typeCheck: true,
},
extends: [
'nuxt-umami'
],
appConfig: {
umami: {
host: "https://analytics.mnl-syndicat.fr",
id: "6aef2e5f-372b-4ec1-a4f4-dea20bf083af",
ignoreLocalhost: true,
version: 2
}
},
css: [
'@/node_modules/normalize.css/normalize.css',
'@/static/scss/base.scss',
],
build: {
transpile: ['vue-notion'],
},
googleFonts: {
families: {
'Schibsted Grotesk': [400, 500, 600, 700, 800, 900],
}
},
svgo: {
svgoConfig: {
plugins: [
{
name: "prefixIds",
params: {
prefixIds: false,
prefixClassNames: false
}
},
]
},
},
sitemap: {
sources: [
'/api/__sitemap__/urls',
],
exclude: ["/interne", "/auth/new-password", "/auth/reset-password", "/interne/*"],
},
runtimeConfig: {
public: {
COMMIT_SHA: process.env.NUXT_ENV_VERCEL_GIT_COMMIT_SHA || process.env.NUXT_ENV_CURRENT_GIT_SHA || 'latest',
sentry: {
dsn: "https://d23dc40e8c2bf00285ebe53583f31abd@o4507288114823168.ingest.de.sentry.io/4507288117968976",
environment: process.env.NODE_ENV
}
}
},
routeRules: {
'/news': {
redirect: '/articles',
},
'/news/le-mnl-integre-lobessu': {
redirect: '/communique/mnl-integre-obessu',
},
'/actualites': {
redirect: '/articles',
},
'/login': {
redirect: '/auth/login',
},
'/register': {
redirect: '/auth/register',
},
'/formation-blocus': {
redirect: '/article/guide-blocus',
},
'/ou-sommes-nous': {
redirect: '/federations',
},
'/lacrymo': {
redirect: '/article/lacrymo'
},
'/federation/26': {
redirect: '/federation/07'
}
},
})