-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
81 lines (70 loc) · 1.99 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
79
80
81
const path = require('path');
export default defineNuxtConfig({
future: {
compatibilityVersion: 4,
},
ssr: true,
app: {
head: {
meta: [
{ name: 'viewport', content: 'viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' },
{name: 'mobile-web-app-capable', content: 'yes'},
{name: 'mobile-web-app-status-bar-style', content: 'black-translucent'},
{name: 'theme-color', content: '#000'},
{hid: 'fragment', name: 'fragment', content: '!'},
],
link: [
{rel: 'icon', type: 'image/x-icon', href: 'https://dxlliv.github.io/favicon.ico'},
{rel: 'preload', type: 'font/woff2', href: '/fonts/minimal.woff2', as: 'font'},
],
},
buildAssetsDir: 'assets/',
cdnURL: 'https://dxlliv.github.io',
},
components: [
{
path: '~/components',
pathPrefix: false,
},
],
modules: [
'@nuxtjs/i18n',
'@nuxt/content',
'@nuxt/fonts',
'@nuxt/icon',
'@pinia/nuxt',
],
imports: {
dirs: ['composables', 'models', 'stores', 'utils']
},
i18n: {
locales: ['en', 'it', 'es', 'fr', 'de', 'pt'],
defaultLocale: 'en',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
redirectOn: 'root'
},
compilation: {
strictMessage: false,
},
},
build: {
transpile: ['vuetify'],
},
vue: {
compilerOptions: {
isCustomElement: (tag) => ['swiper-container', 'swiper-slide'].includes(tag),
},
},
vite: {
css: {
preprocessorOptions: {
scss: {
api: 'modern-compiler' // or "modern"
}
}
},
},
compatibilityDate: '2024-12-27',
})