-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
51 lines (51 loc) · 1.14 KB
/
nuxt.config.ts
File metadata and controls
51 lines (51 loc) · 1.14 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
css: ['leaflet/dist/leaflet.css', '@/assets/styles/main.scss'],
modules: ['@nuxtjs/tailwindcss', '@pinia/nuxt', '@pinia-plugin-persistedstate/nuxt', '@nuxtjs/i18n'],
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL
}
},
i18n: {
strategy: 'no_prefix',
defaultLocale: 'en',
locales: [
{
code: 'en',
iso: 'en-US',
file: 'en.json',
name: 'English'
},
{
code: 'de',
iso: 'de-DE',
file: 'de.json',
name: 'Deutsch'
},
{
code: 'da',
iso: 'da-DK',
file: 'da.json',
name: 'Dansk'
}
],
langDir: '../i18n/locales',
detectBrowserLanguage: {
fallbackLocale: 'en',
redirectOn: 'root',
useCookie: true,
cookieKey: 'i18n_redirected',
alwaysRedirect: false
},
vueI18n: '../i18n.config.ts'
}
})