-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
55 lines (53 loc) · 1.22 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import {resolve} from "node:path";
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
future: {
compatibilityVersion: 4,
},
experimental: {
renderJsonPayloads: false,
inlineSSRStyles: false
},
modules: [
'@nuxtjs/sitemap',
'@nuxtjs/tailwindcss',
'@morev/vue-transitions/nuxt',
'vue3-carousel-nuxt',
'floating-vue/nuxt',
'@nuxtjs/i18n',
],
carousel: {
prefix: 'Module',
},
vite: {
vue: {
script: {
defineModel: true,
},
},
optimizeDeps: { exclude: ['fsevents'], include: ['vue3-carousel'] },
server: {
preTransformRequests: false,
},
},
sitemap: {
cacheMaxAgeSeconds: process.env.NODE_ENV === 'production' ? 60 * 60 * 24 * 31 : 0,
autoI18n: false,
sitemaps: false,
},
components: [{
path: resolve(__dirname, 'app/components/general'),
prefix: 'WU'
}, {
path: resolve(__dirname, 'app/components/controls'),
prefix: 'WU'
}, {
path: resolve(__dirname, 'app/components/controls/parts'),
prefix: 'WU'
}, {
path: resolve(__dirname, 'app/components/controls/mobile'),
prefix: 'WU'
}]
})