Commit f0008d8
committed
Fix noindex is missing on static not-found page (#67135)
Render noindex into a flight data and rsc payload when page path is
`/404`
When it's static generation, noindex is not rendered due to the
statusCode from mock request is 200, but we can relying on the pagePath
as `/404` page should always contain `nonidex`
We were missing the noindex before for flight generation, now we'll
render it when it's 404 page.1 parent 3a6f211 commit f0008d8
File tree
4 files changed
+56
-8
lines changed- packages/next/src/server/app-render
- test/e2e/app-dir/not-found/default
- app
- foo
4 files changed
+56
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
262 | 273 | | |
263 | 274 | | |
264 | 275 | | |
| |||
306 | 317 | | |
307 | 318 | | |
308 | 319 | | |
309 | | - | |
310 | | - | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
311 | 325 | | |
312 | 326 | | |
313 | 327 | | |
| |||
457 | 471 | | |
458 | 472 | | |
459 | 473 | | |
460 | | - | |
461 | | - | |
462 | | - | |
| 474 | + | |
463 | 475 | | |
464 | 476 | | |
465 | 477 | | |
| |||
495 | 507 | | |
496 | 508 | | |
497 | 509 | | |
498 | | - | |
499 | 510 | | |
500 | 511 | | |
501 | 512 | | |
| |||
511 | 522 | | |
512 | 523 | | |
513 | 524 | | |
| 525 | + | |
514 | 526 | | |
515 | 527 | | |
516 | | - | |
517 | 528 | | |
518 | 529 | | |
519 | 530 | | |
| |||
1200 | 1211 | | |
1201 | 1212 | | |
1202 | 1213 | | |
1203 | | - | |
| 1214 | + | |
1204 | 1215 | | |
1205 | 1216 | | |
1206 | 1217 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments