Skip to content

Commit be60996

Browse files
committed
fix: update fallback json
1 parent 98aec51 commit be60996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/isr-fallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default defineNuxtModule({
3131
const outputPath = resolve(nitro.options.output.serverDir, '..', path, htmlFallback)
3232
mkdirSync(resolve(nitro.options.output.serverDir, '..', path), { recursive: true })
3333
writeFileSync(outputPath, spaTemplate)
34-
writeFileSync(outputPath.replace(htmlFallback, jsonFallback), '{}')
34+
writeFileSync(outputPath.replace(htmlFallback, jsonFallback), '[{}]')
3535
}
3636
})
3737
})

0 commit comments

Comments
 (0)