mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #487] [MERGED] fix: Pages Router ISR background regeneration re-renders HTML #609
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#609
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/487
Author: @NathanDrake2406
Created: 3/12/2026
Status: ✅ Merged
Merged: 3/12/2026
Merged by: @james-elicx
Base:
main← Head:fix/isr-pages-router-stale-html📝 Commits (5)
f3f09f4fix: Pages Router ISR background regeneration re-renders HTML60a17e8ci: retrigger checks20774dafix: preserve document shell during prod ISR regenerationec636f0ci: retrigger checks09720caci: retrigger checks📊 Changes
4 files changed (+216 additions, -8 deletions)
View changed files
📝
packages/vinext/src/entries/pages-server-entry.ts(+53 -2)📝
packages/vinext/src/server/dev-server.ts(+68 -4)📝
tests/__snapshots__/entry-templates.test.ts.snap(+53 -2)📝
tests/features.test.ts(+42 -0)📄 Description
Summary
getStaticPropsto get fresh data but stored the old HTML back into the cache — onlypageDataJSON was updated, never the rendered HTML. Every subsequent HIT served the original HTML forever.dev-server.ts) and production server entry (pages-server-entry.ts).getStaticPropswas called without locale context during regeneration (missinglocale,locales,defaultLocale)Cache-Controlheaders could diverge ifrevalidatechangedTest plan
"background regeneration re-renders HTML with fresh props"integration test__NEXT_DATA__🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.