Benjamin Staneck
cb36e1d594
Fix debug build paths Pages Router support entries (#93529)
## Summary
- Preserve Pages Router support entries during Turbopack
`--debug-build-paths` selective builds
- Include custom Pages Router `404` and `500` entries alongside `_app`,
`_document`, and `_error` when a Pages route is selected
- Add regression coverage for selected Pages routes retaining support
entries in `pages-manifest.json`
## Testing
- `RUSTC="$(rustup which --toolchain nightly-2026-06-24 rustc)" cargo
check -p next-api`
- `RUSTC="$(rustup which --toolchain nightly-2026-06-24 rustc)" pnpm
--dir packages/next-swc build-native`
- `HEADLESS=true pnpm test-start-turbo
test/production/debug-build-path/debug-build-paths.test.ts -t "single
page with pages/ prefix"`
- `HEADLESS=true pnpm test-start-turbo
test/production/debug-build-path/debug-build-paths.test.ts`
Fixes #93515
<!-- NEXT_JS_LLM_PR -->
2026-08-12 09:27:12 +02:00
..
2026-04-06 14:30:07 -07:00
2026-05-11 13:55:47 +02:00
2026-07-07 10:11:12 +02:00
2026-07-13 09:44:27 +02:00
2026-07-28 13:35:17 -07:00
2026-08-07 08:26:15 +02:00
2026-08-10 08:58:33 +02:00
2026-05-12 13:16:31 +02:00
2026-05-12 13:16:31 +02:00
2026-05-22 14:01:58 +02:00
2026-05-12 13:16:31 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-08-03 18:10:51 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-21 01:36:10 +00:00
2026-04-06 14:30:07 -07:00
2026-05-11 13:55:47 +02:00
2026-05-12 13:16:31 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-14 08:13:12 +02:00
2026-05-11 13:55:47 +02:00
2026-04-08 22:54:08 +02:00
2026-06-18 10:00:01 -07:00
2026-06-15 23:19:53 +00:00
2026-08-03 18:10:51 +02:00
2026-04-06 14:30:07 -07:00
2026-05-18 18:58:37 +00:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-04-06 14:30:07 -07:00
2026-04-06 14:30:07 -07:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-08-05 15:49:17 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-10 12:11:26 -07:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-04-14 12:22:38 +02:00
2026-05-12 13:16:31 +02:00
2026-06-03 12:23:36 +02:00
2026-05-11 13:55:47 +02:00
2026-08-12 09:27:12 +02:00
2026-05-11 13:55:47 +02:00
2026-05-12 13:16:31 +02:00
2026-07-01 14:12:19 +02:00
2026-07-15 11:28:06 +02:00
2026-05-12 13:16:31 +02:00
2026-05-11 13:55:47 +02:00
2026-04-08 22:54:08 +02:00
2026-04-06 14:30:07 -07:00
2026-05-12 13:16:31 +02:00
2026-05-22 14:01:58 +02:00
2026-05-12 13:16:31 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-03-31 21:29:41 +02:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-06 21:39:01 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-12 13:16:31 +02:00
2026-05-11 13:55:47 +02:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-18 09:51:36 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-06-30 01:27:24 +00:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-06-05 08:11:55 -07:00
2026-04-09 14:19:57 +02:00
2026-05-11 13:55:47 +02:00
2026-05-12 13:16:31 +02:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-08-10 18:29:49 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-16 00:35:23 -07:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-12 13:16:31 +02:00
2026-04-30 10:01:06 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-22 14:01:58 +02:00
2026-05-11 13:55:47 +02:00
2026-04-08 22:54:08 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-02-24 16:11:41 +01:00
2026-05-12 13:16:31 +02:00
2026-04-06 14:30:07 -07:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-08 17:49:29 +02:00
2026-02-04 18:07:39 +01:00
2026-05-11 13:55:47 +02:00
2026-05-18 09:51:36 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-03-13 14:48:51 -07:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-16 07:13:26 +02:00
2026-05-11 13:55:47 +02:00
2026-05-12 18:59:51 +00:00
2026-05-11 13:55:47 +02:00
2026-07-08 14:12:48 -07:00
2026-04-07 20:36:37 +02:00
2026-06-05 20:50:32 +02:00
2026-08-03 18:10:51 +02:00
2026-06-30 15:38:34 -04:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-07-08 14:12:48 -07:00
2026-04-06 14:30:07 -07:00
2026-04-07 20:36:37 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-08-03 18:10:51 +02:00
2026-05-05 17:23:34 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00
2026-05-11 13:55:47 +02:00