Support metadata routes in --debug-build-paths#95788
Merged
Merged
Conversation
Contributor
Tests PassedCommit: 032d79f |
Contributor
Stats from current PR🟢 1 improvement
📊 All Metrics📖 Metrics GlossaryDev Server Metrics:
Build Metrics:
Change Thresholds:
⚡ Dev Server
📦 Dev Server (Webpack) (Legacy)📦 Dev Server (Webpack)
⚡ Production Builds
📦 Production Builds (Webpack) (Legacy)📦 Production Builds (Webpack)
📦 Bundle SizesBundle Sizes⚡ TurbopackClient Main Bundles
Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📎 Tarball URLCommit: 032d79f |
gaearon
force-pushed
the
gaearon-debug-build-paths
branch
from
July 14, 2026 20:09
5b6d69f to
81d81a5
Compare
gaearon
marked this pull request as ready for review
July 14, 2026 20:10
gaearon
force-pushed
the
gaearon-debug-build-paths
branch
from
July 14, 2026 23:15
81d81a5 to
bb23caa
Compare
The pattern resolution only admitted page.* and route.* files via a hand-rolled check, silently dropping metadata route files like opengraph-image.tsx or sitemap.ts, which are route-defining files too. It now uses the same file matcher that route discovery uses to collect app paths, so both sides agree on what a route file is. The resolution is moved from the CLI into the build, where the loaded config is available, so that route files with custom page extensions are matched.
gaearon
force-pushed
the
gaearon-debug-build-paths
branch
from
July 15, 2026 00:14
bb23caa to
032d79f
Compare
timneutkens
approved these changes
Jul 15, 2026
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.
Extracted from #95468.
@lubieowoce asked me to use
--debug-build-pathsin a test, but it didn't work for route handlers because this flag was using a homecooked regex that doesn't match App Router's actual mechanism.Making it use the actual App Router matching involves moving some resolution around and threading things through.
This is for a debug-only (test-only?) helper.