Unverified Commit bb380e77 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix other case for buildId mismatch (#53643)

Continues fix from https://github.com/vercel/next.js/pull/53596 and
applies it for the `x-matched-path` specific code path.
parent 3e637cab
......@@ -926,6 +926,16 @@ export default abstract class Server<ServerOptions extends Options = Options> {
}
parsedUrl.pathname = matchedPath
url.pathname = parsedUrl.pathname
const normalizeResult = await this.normalizeNextData(
req,
res,
parsedUrl
)
if (normalizeResult.finished) {
return
}
} catch (err) {
if (err instanceof DecodeError || err instanceof NormalizeError) {
res.statusCode = 400
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment