-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
56 lines (56 loc) · 1.14 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
import {
getLocatedRouteRules,
LOCALES,
DEFAULT_LOCALE,
STRATEGY
} from './services/i18n';
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
css: [
'/assets/styles/ds.css',
'/assets/styles/fonts.css',
'primevue/resources/primevue.css',
'primeflex/primeflex.css',
'primeicons/primeicons.css',
'/assets/styles/containers.css'
],
build: {
transpile: ['primevue']
},
routeRules: {
...getLocatedRouteRules()
},
imports: {
autoImport: false
},
modules: [
'@pinia/nuxt',
'@vee-validate/nuxt',
'@nuxtjs/i18n',
'@nuxtjs/eslint-module'
],
runtimeConfig: {
public: {
backendURL: process.env.backendURL || 'http://localhost:8000',
authEndpoints: {
login: '/login',
refresh: '/token',
logout: '/logout',
me: '/me'
}
}
},
i18n: {
lazy: true,
langDir: 'assets/lang',
locales: LOCALES,
defaultLocale: DEFAULT_LOCALE,
strategy: STRATEGY,
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'ds_i18n',
redirectOn: 'root',
alwaysRedirect: true
}
}
});