-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
78 lines (78 loc) · 2.03 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
runtimeConfig: {
public: {
i18n: {
baseUrl: process.env.NUXT_PUBLIC_I18N_BASE_URL!
},
baseUrl: process.env.NUXT_PUBLIC_BASE_URL!,
snapshotMirrors: JSON.parse(process.env.NUXT_PUBLIC_SNAPSHOT_MIRRORS!),
networkPreMeasureFileSize: parseInt(process.env.NUXT_PUBLIC_NETWORK_PRE_MEASURE_FILE_SIZE!),
networkMeasureFileSize: parseInt(process.env.NUXT_PUBLIC_NETWORK_MEASURE_FILE_SIZE!),
explorerBackendEndpoint: process.env.NUXT_PUBLIC_EXPLORER_BACKEND_ENDPOINT!
}
},
app: {
pageTransition: { name: "page", mode: "out-in" }
},
modules: [
"@nuxt/image",
"@nuxtjs/i18n",
"@nuxtjs/tailwindcss"
],
i18n: {
locales: [
{
name: "English",
code: "en",
iso: "en-US",
file: "en.ts"
},
{
name: "Русский",
code: "ru",
iso: "ru-RU",
file: "ru.ts"
}
],
defaultLocale: "en",
lazy: false,
langDir: "localization",
strategy: "prefix_except_default",
detectBrowserLanguage: {
useCookie: true,
cookieKey: "lang",
redirectOn: "root",
alwaysRedirect: true
}
},
image: {
format: ["webp", "png"],
provider: "ipx",
quality: 100,
ipx: {
modifiers: {
format: "webp",
quality: 100
},
},
},
srcDir: "src/",
css: ["~/assets/css/tailwind.css"],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
},
build: {
transpile: [
"@heroicons/vue"
]
},
typescript: {
typeCheck: true,
strict: true
}
})