We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2ac7fc commit 04dc3ecCopy full SHA for 04dc3ec
src/build/content/prerendered.ts
@@ -57,7 +57,7 @@ const buildAppCacheValue = async (path: string): Promise<CachedPageValue> => {
57
readFile(`${path}.prefetch.rsc`, 'utf-8'),
58
)
59
60
- if (!meta.status && rsc.includes('NEXT_NOT_FOUND')) {
+ if (!meta.status && meta.headers['x-next-cache-tags'].includes('_N_T_/not-found/layout')) {
61
meta.status = 404
62
}
63
0 commit comments