@@ -24,63 +24,74 @@ export default defineNuxtConfig({
24
24
'nuxt-eslint-auto-explicit-import' ,
25
25
] ,
26
26
27
- ssr : false ,
28
-
29
- nitro : {
30
- output : {
31
- publicDir : resolver . resolve ( '../dist/client' ) ,
27
+ // For dogfooding purposes
28
+ $development : {
29
+ appConfig : {
30
+ fixture2 : 'from nuxt.config.ts' ,
32
31
} ,
33
- devStorage : {
34
- test : {
35
- driver : 'fs' ,
36
- base : resolver . resolve ( './.data/test' ) ,
32
+
33
+ runtimeConfig : {
34
+ 'fixture3' : 'private runtime config from nuxt.config.ts' ,
35
+ 'api-key' : 'null' ,
36
+ 'public' : {
37
+ fixture4 : 'public runtime config from nuxt.config.ts' ,
37
38
} ,
38
39
} ,
39
- hooks : {
40
- 'prerender:routes' : function ( routes ) {
41
- // Disable prerendering as it's an SPA
42
- routes . clear ( )
40
+
41
+ nitro : {
42
+ devStorage : {
43
+ test : {
44
+ driver : 'fs' ,
45
+ base : resolver . resolve ( './.data/test' ) ,
46
+ } ,
47
+ } ,
48
+ experimental : {
49
+ tasks : true ,
50
+ } ,
51
+ scheduledTasks : {
52
+ '*/5 * * * *' : [ 'collection:1' , 'collection:2' ] ,
53
+ '*/30 * * * *' : [ 'ping' ] ,
43
54
} ,
44
55
} ,
45
- experimental : {
46
- tasks : true ,
47
- } ,
48
- scheduledTasks : {
49
- '*/5 * * * *' : [ 'collection:1' , 'collection:2' ] ,
50
- '*/30 * * * *' : [ 'ping' ] ,
56
+ } ,
57
+
58
+ // Production Overrides
59
+ $production : {
60
+ app : {
61
+ // We set a placeholder for the middleware to be replaced with the correct base URL
62
+ baseURL : '/__NUXT_DEVTOOLS_BASE__/' ,
51
63
} ,
52
64
} ,
53
65
66
+ ssr : false ,
67
+
68
+ app : {
69
+ baseURL : '/__nuxt_devtools__/client/' ,
70
+ } ,
71
+
54
72
alias : {
55
73
'@nuxt/devtools-kit/iframe-client' : resolver . resolve ( '../../devtools-kit/src/runtime/iframe-client' ) ,
56
74
'@nuxt/devtools-kit/types' : resolver . resolve ( '../../devtools-kit/src/types' ) ,
57
75
'@nuxt/devtools-kit' : resolver . resolve ( '../../devtools-kit/src/index' ) ,
58
76
} ,
59
77
60
- eslint : {
61
- config : {
62
- standalone : false ,
63
- } ,
78
+ experimental : {
79
+ watcher : 'parcel' ,
64
80
} ,
65
81
66
- appConfig : {
67
- fixture2 : 'from nuxt.config.ts' ,
68
- } ,
82
+ compatibilityDate : '2024-07-22' ,
69
83
70
- runtimeConfig : {
71
- 'fixture3' : 'private runtime config from nuxt.config.ts' ,
72
- 'api-key' : 'null' ,
73
- 'public' : {
74
- fixture4 : 'public runtime config from nuxt.config.ts' ,
84
+ nitro : {
85
+ output : {
86
+ publicDir : resolver . resolve ( '../dist/client' ) ,
75
87
} ,
76
- } ,
77
88
78
- app : {
79
- baseURL : '/__nuxt_devtools__/client/' ,
80
- } ,
81
-
82
- experimental : {
83
- watcher : 'parcel' ,
89
+ hooks : {
90
+ 'prerender:routes' : function ( routes ) {
91
+ // Disable prerendering as it's an SPA
92
+ routes . clear ( )
93
+ } ,
94
+ } ,
84
95
} ,
85
96
86
97
vite : {
@@ -138,13 +149,12 @@ export default defineNuxtConfig({
138
149
includeWorkspace : true ,
139
150
} ,
140
151
141
- // Production Overrides
142
- $production : {
143
- app : {
144
- // We set a placeholder for the middleware to be replaced with the correct base URL
145
- baseURL : '/__NUXT_DEVTOOLS_BASE__/' ,
152
+ eslint : {
153
+ config : {
154
+ standalone : false ,
155
+ nuxt : {
156
+ sortConfigKeys : true ,
157
+ } ,
146
158
} ,
147
159
} ,
148
-
149
- compatibilityDate : '2024-07-22' ,
150
160
} )
0 commit comments