Skip to content

Commit 09851e2

Browse files
authored
Revert "Ensure _middleware is consistent in adapter for name/id" (#89624)
This is causing conflicts as the name value is relied on too much since it can differ heavily e.g. for `src` dir and if not. x-ref: https://github.com/vercel/next.js/actions/runs/21767409431/job/62826336354#step:34:240 Reverts #89559
1 parent 5ac0421 commit 09851e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/next/src/build/adapter/build-complete.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,7 @@ export async function handleBuildComplete({
749749
}
750750
})
751751
output.pathname = '/_middleware'
752-
output.id = '/_middleware'
752+
output.id = page.name
753753
outputs.middleware = output
754754
} else {
755755
currentOutputs.push(output)

0 commit comments

Comments
 (0)