Skip to content

Commit 75d3d8d

Browse files
committed
fix: return null as payload fallback
1 parent 2f6763b commit 75d3d8d

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), 'null')
3535
}
3636
})
3737
})

0 commit comments

Comments
 (0)