mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #638] [MERGED] refactor: extract app page render lifecycle #738
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#738
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/638
Author: @southpolesteve
Created: 3/22/2026
Status: ✅ Merged
Merged: 3/22/2026
Merged by: @southpolesteve
Base:
main← Head:codex/app-page-render-lifecycle-runtime📝 Commits (2)
a9e510erefactor: extract app page render lifecycleb30bbeetest: refresh page render lifecycle generator assertions📊 Changes
5 files changed (+913 additions, -1742 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+51 -257)➕
packages/vinext/src/server/app-page-render.ts(+313 -0)📝
tests/__snapshots__/entry-templates.test.ts.snap(+301 -1432)➕
tests/app-page-render.test.ts(+219 -0)📝
tests/app-router.test.ts(+29 -53)📄 Description
Summary
app-page-render.tsapp-rsc-entry.tsfocused on route-specific closures while delegating probe, RSC/HTML response orchestration, and page cache finalization to the helperVerification
vp check packages/vinext/src/server/app-page-render.ts packages/vinext/src/entries/app-rsc-entry.ts tests/app-page-render.test.ts tests/app-router.test.tsvp test run tests/app-page-render.test.ts tests/app-page-boundary-render.test.ts tests/app-page-cache.test.ts tests/app-page-response.test.ts tests/app-page-stream.test.ts tests/app-page-probe.test.tsvp test run tests/app-router.test.ts --testTimeout=120000 -t "page ISR \+ searchParams|renders custom not-found.tsx for unmatched routes|notFound\(\) escalates to nearest ancestor not-found.tsx|forbidden\(\) from Server Component returns 403 with forbidden.tsx|unauthorized\(\) from Server Component returns 401 with unauthorized.tsx|renders error boundary wrapper for routes with error.tsx|generated code delegates page render lifecycle to a typed helper|generated code handles SSR special errors without a legacy handleRenderError helper|generated code delegates page HTML stream plumbing to typed helpers|generated code delegates live page rendering to the typed lifecycle helper|generated code stores rscData in the ISR cache entry|generated code threads page cache keys into the typed lifecycle helper|generated code delegates two-phase page cache logic to the typed lifecycle helper"vp test run tests/entry-templates.test.ts -uvp test run tests/nextjs-compat/global-error.test.tsvp run vinext#buildStacked on #637.
Written by Codex.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.