mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #619] [MERGED] refactor: extract app route handler response helpers #716
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#716
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/619
Author: @southpolesteve
Created: 3/21/2026
Status: ✅ Merged
Merged: 3/21/2026
Merged by: @james-elicx
Base:
main← Head:codex/app-route-handler-execution-runtime📝 Commits (1)
6b868eerefactor: extract app route handler response helpers📊 Changes
5 files changed (+692 additions, -675 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+63 -96)➕
packages/vinext/src/server/app-route-handler-response.ts(+130 -0)📝
tests/__snapshots__/entry-templates.test.ts.snap(+360 -576)➕
tests/app-route-handler-response.test.ts(+136 -0)📝
tests/app-router.test.ts(+3 -3)📄 Description
Summary
app-rsc-entry.tsfocused on request orchestration while moving low-levelResponseassembly out of the template stringWhat moved
Files
packages/vinext/src/server/app-route-handler-response.tstests/app-route-handler-response.test.tspackages/vinext/src/entries/app-rsc-entry.tsWhy this is the next step
#618pulled direct request-access tracking out of the generated RSC entry.This PR keeps going in the same hotspot, but takes the response/cache-shaping half next.
That leaves the generated route-handler block noticeably smaller and pushes more behavior into normal importable TypeScript.
Verification
vp check packages/vinext/src/server/app-route-handler-response.ts packages/vinext/src/entries/app-rsc-entry.ts tests/app-route-handler-response.test.ts tests/app-route-handler-runtime.test.ts tests/app-router.test.tsvp test run tests/app-route-handler-response.test.ts tests/app-route-handler-runtime.test.tsvp test run tests/entry-templates.test.ts -uvp test run tests/app-router.test.ts -t "route handler"vp test run tests/nextjs-compat/app-routes.test.tsvp run vinext#buildNotes
codex/app-route-handler-runtime).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
typeoverinterface#795