Remove server route matcher stack#94157
Open
timneutkens wants to merge 20 commits into
Open
Conversation
Contributor
Stats skippedCommit: 28a04cc |
Contributor
Failing CI jobsCommit: 28a04cc | About building and testing Next.js |
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
7 times, most recently
from
May 28, 2026 16:03
46f9eb9 to
76b352a
Compare
timneutkens
marked this pull request as ready for review
May 28, 2026 16:35
timneutkens
marked this pull request as draft
May 28, 2026 16:35
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
4 times, most recently
from
May 29, 2026 09:10
f7f93a9 to
2d6ea15
Compare
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
May 29, 2026
timneutkens
commented
Jun 1, 2026
timneutkens
commented
Jun 1, 2026
timneutkens
commented
Jun 1, 2026
timneutkens
commented
Jun 1, 2026
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
7 times, most recently
from
June 21, 2026 18:25
013e4e6 to
dc108f6
Compare
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
from
June 26, 2026 18:51
0adce3b to
ae5ea25
Compare
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
from
July 8, 2026 14:32
ae5ea25 to
be7dfc7
Compare
timneutkens
force-pushed
the
codex/remove-route-matcher-stack
branch
from
July 14, 2026 10:59
be7dfc7 to
28a04cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Remove the legacy server route matcher managers, route matcher providers, and server route matcher classes. Move route definition and params metadata into fsChecker output and request metadata instead.
Why?
The filesystem checker already owns the normalized route lookup path in production. Keeping a separate matcher manager stack duplicates route inventory, adds reload plumbing, and makes dev and production behavior harder to keep aligned.
How?
Verification
pnpm test-start-webpack test/e2e/custom-routes/custom-routes.test.tspnpm test-start-turbo test/e2e/custom-routes/custom-routes.test.tspnpm test-dev-webpack test/e2e/custom-routes/custom-routes.test.tspnpm test-dev-turbo test/e2e/custom-routes/custom-routes.test.tspnpm test-dev-webpack test/e2e/on-request-error/dynamic-routes/dynamic-routes.test.tspnpm test-dev-turbo test/e2e/on-request-error/dynamic-routes/dynamic-routes.test.tspnpm test-start-webpack test/e2e/app-dir/app-routes/app-custom-routes.test.tspnpm test-start-webpack test/e2e/app-dir/edge-route-rewrite/edge-route-rewrite.test.tspnpm test-start-webpack test/e2e/middleware-rewrites/test/index.test.tspnpm test-start-webpack test/e2e/middleware-matcher/index.test.ts test/e2e/middleware-custom-matchers-basepath/test/index.test.ts test/e2e/app-dir/rewrites-redirects/rewrites-redirects.test.tspnpm test-start-webpack test/e2e/api-catch-all/api-catch-all.test.ts test/e2e/basepath-root-catch-all/basepath-root-catch-all.test.ts test/production/root-catchall-cache/root-catchall-cache.test.tspnpm test-start-webpack test/e2e/i18n-beforefiles-rewrite/i18n-beforefiles-rewrite.test.tspnpm test-start-webpack test/e2e/basepath/redirect-and-rewrite.test.tspnpm test-dev-webpack test/e2e/custom-server/custom-server.test.tspnpm test-start-webpack test/e2e/custom-server/custom-server.test.tspnpm --filter=next typespnpm --filter=next buildgit diff --check