Commit 3eff999
authored
[next]: attach segment fallbacks when client param parsing is enabled (#14689)
Next.js builds segment prefetch files at build time, but the builder
only attached fallbacks when allowQuery was empty. This meant segment
prefetches for parametrized routes hit the function even though usable
segment fallbacks existed. This change allows attaching segment
fallbacks when client param parsing is enabled (which is always true
when cache components is on), aligning Vercel behavior with next start.
Cache keys still vary by `allowQuery`, so param isolation is preserved.1 parent ee44634 commit 3eff999
File tree
5 files changed
+44
-10
lines changed- .changeset
- packages/next
- src
- test/integration
- ppr-root-params
- app/[lang]/skills/[skill]
5 files changed
+44
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3285 | 3285 | | |
3286 | 3286 | | |
3287 | 3287 | | |
3288 | | - | |
3289 | | - | |
3290 | | - | |
3291 | | - | |
3292 | | - | |
| 3288 | + | |
| 3289 | + | |
| 3290 | + | |
3293 | 3291 | | |
3294 | | - | |
| 3292 | + | |
| 3293 | + | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
3295 | 3297 | | |
3296 | 3298 | | |
3297 | 3299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
598 | 598 | | |
599 | 599 | | |
600 | 600 | | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
601 | 622 | | |
602 | 623 | | |
603 | 624 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
6 | 3 | | |
0 commit comments