Commit e0d4df2
[ppr] Narrow condition for fallback shell generation at runtime (#79565)
This addresses a bug where a fallback shell was generated at runtime
when it was not expected to do so. This was an issue with how the
`x-now-route-matches` header was parsed and was incorrectly assuming
that a falsy header was the same as comparing it to a string. This
correctly only generates the fallback shell if the header is present and
was an empty string as was sent by Vercel.
Co-authored-by: Hendrik Liebau <mail@hendrik-liebau.de>1 parent 3175a22 commit e0d4df2
File tree
5 files changed
+38
-11
lines changed- .changeset
- packages/next/src/server
- test
- e2e/app-dir/empty-fallback-shells
- production/standalone-mode/required-server-files
5 files changed
+38
-11
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 | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
1350 | 1352 | | |
1351 | 1353 | | |
1352 | 1354 | | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
| 1355 | + | |
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
1362 | 1367 | | |
1363 | 1368 | | |
1364 | 1369 | | |
| |||
3223 | 3228 | | |
3224 | 3229 | | |
3225 | 3230 | | |
3226 | | - | |
3227 | | - | |
| 3231 | + | |
3228 | 3232 | | |
3229 | 3233 | | |
3230 | 3234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
121 | 138 | | |
122 | 139 | | |
123 | 140 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
358 | 359 | | |
359 | 360 | | |
360 | 361 | | |
| |||
0 commit comments