mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #684] [MERGED] refactor: share Pages ISR cache runtime #767
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#767
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/684
Author: @southpolesteve
Created: 3/25/2026
Status: ✅ Merged
Merged: 3/28/2026
Merged by: @james-elicx
Base:
codex/pages-api-route-runtime← Head:codex/pages-isr-cache-runtime📝 Commits (1)
6706091refactor: share pages isr cache runtime📊 Changes
3 files changed (+50 additions, -89 deletions)
View changed files
📝
packages/vinext/src/entries/pages-server-entry.ts(+17 -41)📝
tests/__snapshots__/entry-templates.test.ts.snap(+13 -41)📝
tests/entry-templates.test.ts(+20 -7)📄 Description
Summary
server/isr-cache.tsruntime instead of embedding a second ISR implementation in the generated templateisrGet,isrSet,triggerBackgroundRegeneration, andisrCacheKeythrough typed helpersVerification
vp check packages/vinext/src/entries/pages-server-entry.ts tests/entry-templates.test.tsvp test run tests/entry-templates.test.ts tests/isr-cache.test.ts -uvp test run tests/pages-router.test.ts -t "renders pages with getStaticPaths + getStaticProps|returns 404 for paths not in getStaticPaths when fallback is false|keeps ISR cache-fill rerenders isolated from the streamed render state|wraps stale regeneration in a fresh unified request context"vp run vinext#buildWritten by Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.