-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
76 lines (70 loc) · 1.41 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
import Aura from '@primevue/themes/aura';
import {
availableLocales,
DEFAULT_LOCALE,
STRATEGY,
ZOD_LOCALES_MAP
} from './services/i18n-service';
export default defineNuxtConfig({
ssr: false,
spaLoadingTemplate: true,
imports: {
autoImport: false,
scan: false
},
components: {
dirs: []
},
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: [
'@primevue/nuxt-module',
'@pinia/nuxt',
'nuxt-zod-i18n',
'@nuxtjs/i18n',
'@nuxt/eslint'
],
css: ['~/assets/styles/ds.css', 'primeicons/primeicons.css'],
i18n: {
lazy: true,
restructureDir: false,
langDir: 'assets/lang',
locales: availableLocales(),
defaultLocale: DEFAULT_LOCALE,
strategy: STRATEGY,
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'ds_i18n',
redirectOn: 'root',
alwaysRedirect: true
}
},
zodI18n: {
localeCodesMapping: ZOD_LOCALES_MAP
},
primevue: {
options: {
theme: {
preset: Aura,
options: {
darkModeSelector: '.ds-dark-mode',
cssLayer: {
name: 'primevue',
order: 'tailwind-base, primevue, tailwind-utilities'
}
}
}
}
},
runtimeConfig: {
public: {
backendURL: process.env.backendURL || 'http://localhost:8000'
}
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}
});