Skip to content

Commit acdfd3a

Browse files
committed
fix: return 404 error for initial payload
1 parent 0f52cb2 commit acdfd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuxt.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ function getISRConfig(expirationSeconds: number, options: ISRConfigOptions = {})
364364
fallback:
365365
options.fallback === 'html' ? 'spa.prerender-fallback.html' : 'payload-fallback.json',
366366
initialHeaders: options.fallback === 'json' ? { 'content-type': 'application/json' } : {},
367-
initialStatus: options.fallback === 'json' ? 400 : undefined,
367+
initialStatus: options.fallback === 'json' ? 404 : undefined,
368368
} as { expiration: number },
369369
}
370370
}

0 commit comments

Comments
 (0)