Commit 52260e7
committed
Fix prerender tags when notFound is called (#74577)
This ensures we don't lose tags added to a page before `notFound()` is
called as otherwise a fetch on the page that has been revalidated won't
be able to be applied correctly if dropped from a `notFound()` call.
This was broken recently in the refactors of handling rendering in
app-render as it worked correctly in `v14`.
x-ref: [slack
thread](https://vercel.slack.com/archives/C04V3E1UYNQ/p1736200963684869)
Closes https://linear.app/vercel/issue/ENET-1381
Closes https://linear.app/vercel/issue/NEXT-3946
Closes #73973
Closes #665401 parent a46f27f commit 52260e7
File tree
3 files changed
+1986
-1850
lines changed- packages/next/src/server/app-render
- test/e2e/app-dir/app-static
- app/prerendered-not-found/[slug]
3 files changed
+1986
-1850
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3777 | 3777 | | |
3778 | 3778 | | |
3779 | 3779 | | |
3780 | | - | |
| 3780 | + | |
3781 | 3781 | | |
3782 | 3782 | | |
3783 | 3783 | | |
| |||
0 commit comments