-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnuxt.config.ts
92 lines (80 loc) · 1.54 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
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
runtimeConfig: {
rapidApiKey: process.env.RAPID_API_KEY,
rapidApiHost: process.env.RAPID_API_HOST,
public: {
siteUrl: process.env.SITE_URL,
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler',
additionalData: '@use "sass:math"; @use "@/assets/scss/variables.scss" as variables;',
},
},
},
},
nitro: {
prerender: {
crawlLinks: true,
},
},
experimental: {
writeEarlyHints: true,
},
modules: [
'@nuxt/eslint',
'@nuxtjs/google-fonts',
'@nuxtjs/color-mode',
'@nuxtjs/i18n',
'@nuxtjs/robots',
'@vueuse/nuxt',
'@pinia/nuxt',
'nuxt-cloudflare-analytics',
'@nuxt/test-utils/module',
'v-wave/nuxt',
],
imports: {
dirs: ['store'],
},
i18n: {
baseUrl: process.env.SITE_URL,
lazy: true,
detectBrowserLanguage: false,
locales: [
{
code: 'fr',
language: 'fr',
name: 'Français',
file: 'fr.yml',
},
{
code: 'en',
language: 'en',
name: 'English',
file: 'en.yml',
},
],
defaultLocale: 'fr',
},
robots: {
disallow: process.env.ROBOTS_DISALLOW_VALUE,
},
cloudflareAnalytics: {
token: process.env.CLOUDFLARE_ANALYTICS_TOKEN,
},
vWave: {
directive: 'ripple',
},
googleFonts: {
families: {
Inter: [300, 400, 500],
},
},
compatibilityDate: '2025-01-01',
})