-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
52 lines (52 loc) · 1.26 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
// https://github.com/nuxt-modules/tailwindcss
"@nuxtjs/tailwindcss",
// https://github.com/nuxt-modules/i18n
"@nuxtjs/i18n",
// https://github.com/vuejs/pinia
// "@pinia/nuxt",
// https://github.com/vueuse/vueuse
"@vueuse/nuxt",
// https://github.com/nuxt/image
"@nuxt/image",
// https://github.com/nuxt-modules/icon
"nuxt-icon",
// https://github.com/nuxt-modules/html-validator
// '@nuxtjs/html-validator',
],
tailwindcss: {
configPath: "tailwind.config",
},
// runtimeConfig: {
// // privateenv: process.env.NUXT_privateenv,
// public: {
// publicenv: process.env.NUXT_PUBLIC_publicenv,
// },
// },
i18n: {
// baseUrl: "http://localhost:3000",
defaultLocale: "fr",
strategy: "prefix_except_default",
lazy: true,
langDir: "locales/",
locales: [
{
code: "fr",
iso: "fr-FR",
file: "fr-FR.json",
},
],
detectBrowserLanguage: {
useCookie: true,
cookieKey: "i18n_redirected",
redirectOn: "root",
cookieCrossOrigin: true,
fallbackLocale: "fr",
},
},
typescript: {
strict: true,
},
});