Repository navigation
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
69 lines (59 loc) · 1.48 KB
/
Copy pathnuxt.config.ts
File metadata and controls
69 lines (59 loc) · 1.48 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
modules: [
'unplugin-icons/nuxt', // Icon module
'@pinia/nuxt', // State management
],
devtools: {
enabled: false, // ✅ Disable devtools to prevent module loading issues
},
ssr: false, // ✅ Disable SSR to avoid server-side issues
runtimeConfig: {
public: {
singularityAPI: process.env.API_BASE || 'http://localhost:9090/api'
}
},
css: [
'vuetify/styles', // ✅ Recommended global Vuetify styles
'~/assets/css/truly-responsive-tables.css', // New comprehensive responsive solution
],
build: {
transpile: ['vuetify'], // ✅ Required for Vuetify 3
},
devServer: {
port: 3000,
host: 'localhost'
},
nitro: {
routeRules: {
// Disable caching for development
'/**': process.env.NODE_ENV === 'development' ? {
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate',
'Pragma': 'no-cache',
'Expires': '0'
}
} : {}
}
},
vite: {
define: {
'process.env.DEBUG': false, // ✅ Prevent Vuetify dev warnings
'__VUE_PROD_DEVTOOLS__': false,
},
optimizeDeps: {
include: ['error-stack-parser-es'],
},
server: {
fs: {
strict: false,
allow: [
// Allow serving files from root
'/',
]
},
middlewareMode: false,
}
},
})