-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
87 lines (86 loc) · 2.04 KB
/
nuxt.config.ts
File metadata and controls
87 lines (86 loc) · 2.04 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
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
82
83
84
85
86
87
import pkg from "./package.json";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
"@nuxt/eslint",
"@nuxtjs/device",
"@vueuse/nuxt",
"@pinia/nuxt",
"@nuxt/test-utils/module",
"pinia-plugin-persistedstate/nuxt",
"@nuxt/ui",
"./modules/build-copy"
],
ssr: false,
imports: {
autoImport: true
},
devtools: {
enabled: true,
},
css: [
"~/assets/css/main.css"
],
router: {
options: {
scrollBehaviorType: "smooth"
}
},
runtimeConfig: {
public: {
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL,
wsUrl: process.env.NUXT_PUBLIC_WS_URL,
appVersion: pkg.version,
},
},
future: {
compatibilityVersion: 4,
},
compatibilityDate: "2025-02-09",
nitro: {
experimental: {
websocket: true
},
imports: {
dirs: [
"./server/config/**",
"./server/types/**",
"./server/voter/**",
]
},
storage: {
fs: {
driver: "fs-lite",
base: ".cache"
},
email: {
driver: "fs-lite",
base: "email"
}
}
},
// debug: process.env.NODE_ENV === "development",
copyFiles: {
sources: ["./email"],
root: "dir"
},
eslint: {
config: {
stylistic: {
indent: 4,
semi: true,
quotes: "double",
commaDangle: "only-multiline",
braceStyle: "allman",
quoteProps: "as-needed",
}
},
},
pinia: {
storesDirs: ["./stores/**"],
},
piniaPluginPersistedstate: {
storage: "localStorage",
key: "cuisto_%id"
},
});