File tree 1 file changed +7
-14
lines changed
1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -123,35 +123,28 @@ export default <Environment>{
123
123
)
124
124
const manifestBaseRoutePath = joinURL ( '/_' , manifestOutputPath )
125
125
126
+ // @ts -expect-error untyped __NUXT__ variable
127
+ const buildId = win . __NUXT__ . config . app . buildId || 'test'
128
+
126
129
h3App . use (
127
130
`${ manifestBaseRoutePath } /latest.json` ,
128
131
defineEventHandler ( ( ) => ( {
129
- id : 'test' ,
130
- timestamp,
131
- } ) ) ,
132
- )
133
- h3App . use (
134
- `${ manifestBaseRoutePath } /meta/test.json` ,
135
- defineEventHandler ( ( ) => ( {
136
- id : 'test' ,
132
+ id : buildId ,
137
133
timestamp,
138
- matcher,
139
- prerendered : [ ] ,
140
134
} ) ) ,
141
135
)
142
136
h3App . use (
143
- `${ manifestBaseRoutePath } /meta/dev .json` ,
137
+ `${ manifestBaseRoutePath } /meta/${ buildId } .json` ,
144
138
defineEventHandler ( ( ) => ( {
145
- id : 'test' ,
139
+ id : buildId ,
146
140
timestamp,
147
141
matcher,
148
142
prerendered : [ ] ,
149
143
} ) ) ,
150
144
)
151
145
152
146
registry . add ( `${ manifestOutputPath } /latest.json` )
153
- registry . add ( `${ manifestOutputPath } /meta/test.json` )
154
- registry . add ( `${ manifestOutputPath } /meta/dev.json` )
147
+ registry . add ( `${ manifestBaseRoutePath } /meta/${ buildId } .json` )
155
148
156
149
return {
157
150
// called after all tests with this env have been run
You can’t perform that action at this time.
0 commit comments