Unverified Commit 7b2a4673 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure _middleware is consistent in adapter for name/id (#89559)

Makes sure we don't use both `_middleware` and `middleware` naming for
the output.

Found in https://github.com/vercel/next.js/pull/89522 we were using
both.
parent ffd953c4
...@@ -747,7 +747,7 @@ export async function handleBuildComplete({ ...@@ -747,7 +747,7 @@ export async function handleBuildComplete({
} }
}) })
output.pathname = '/_middleware' output.pathname = '/_middleware'
output.id = page.name output.id = '/_middleware'
outputs.middleware = output outputs.middleware = output
} else { } else {
currentOutputs.push(output) currentOutputs.push(output)
......
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