return a 404 when `/next/_data` build IDs are mismatched (#53596)
`normalizeNextData` in `next-server` used to exit early with a 404 when there was a build ID mismatch, but a recent refactor accidentally removed this functionality. This PR updates it to behave similarly to [web-server](https://github.com/vercel/next.js/blob/canary/packages/next/src/server/web-server.ts#L180-L187) where we render404 if there's a mismatch. [slack x-ref](https://vercel.slack.com/archives/C03S8ED1DKM/p1691111541353749)
Showing
Please
register
or
sign in
to comment