Fix pages index normalization for --debug-build-paths#90314
Open
devjiwonchoi wants to merge 7 commits intocanaryfrom
Open
Fix pages index normalization for --debug-build-paths#90314devjiwonchoi wants to merge 7 commits intocanaryfrom
devjiwonchoi wants to merge 7 commits intocanaryfrom
Conversation
Merging this PR will not alter performance
Comparing Footnotes
|
Collaborator
Stats from current PR✅ No significant changes detected📊 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: **399 kB** → **399 kB** ✅ -2 B80 files with content-based hashes (individual files not comparable between builds) Server Middleware
Build DetailsBuild Manifests
📦 WebpackClient Main Bundles
Polyfills
Pages
Server Edge SSR
Middleware
Build DetailsBuild Manifests
Build Cache
🔄 Shared (bundler-independent)Runtimes
📝 Changed Files (2 files)Files with changes:
View diffspages-api-tu..time.prod.jsDiff too large to display pages-turbo...time.prod.jsDiff too large to display |
Collaborator
Tests Passed |
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.
Summary
--debug-build-pathspages normalization in Turbopack sopages/<name>/index.tsxmaps to/<name>(matching JSgetPageFromPath()behavior)./index.tsx -> /.test/production/debug-build-path/debug-build-paths.test.tswith a generic fixturepages/with-index/index.tsx.Current Behavior Reference
Root Cause
Rust-side debug-build-path normalization removed file extensions but did not remove
/index, producing route keys like/with-index/indexwhile pages route keys are/with-index. That mismatch filtered out the page and causedPageNotFoundErrorduring page-data collection.Testing
cargo fmt --manifest-path Cargo.toml --package next-api --checkcargo check --manifest-path Cargo.toml -p next-apipnpm prettier --check test/production/debug-build-path/debug-build-paths.test.ts test/production/debug-build-path/fixtures/default/pages/with-index/index.tsxNODE_OPTIONS="--max-old-space-size=4096" node packages/next/dist/bin/next build test/production/debug-build-path/fixtures/default --debug-prerender --debug-build-paths="pages/**"○ /with-index.