mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #618] [MERGED] refactor: extract app route handler request runtime #717
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#717
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/618
Author: @southpolesteve
Created: 3/21/2026
Status: ✅ Merged
Merged: 3/21/2026
Merged by: @southpolesteve
Base:
main← Head:codex/app-route-handler-runtime📝 Commits (1)
5ff52b8refactor: extract app route handler request runtime📊 Changes
7 files changed (+615 additions, -161 deletions)
View changed files
📝
packages/vinext/src/entries/app-rsc-entry.ts(+42 -29)➕
packages/vinext/src/server/app-route-handler-runtime.ts(+187 -0)📝
tests/__snapshots__/entry-templates.test.ts.snap(+234 -132)➕
tests/app-route-handler-runtime.test.ts(+112 -0)📝
tests/app-router.test.ts(+24 -0)➕
tests/fixtures/app-basic/app/api/dynamic-request-headers/route.ts(+7 -0)➕
tests/fixtures/app-basic/app/api/dynamic-request-url/route.ts(+9 -0)📄 Description
Summary
request.headersandrequest.urlaccess under route-handler ISRDetails
packages/vinext/src/server/app-route-handler-runtime.tsNextRequest/NextURLproxy creation into the same module, following the dynamic request reads Next.js tracks inproxyNextRequest()packages/vinext/src/entries/app-rsc-entry.tsas thinner glue that imports those helpers instead of embedding them in template-string runtime codeVerification
vp check packages/vinext/src/server/app-route-handler-runtime.ts packages/vinext/src/entries/app-rsc-entry.ts tests/app-route-handler-runtime.test.ts tests/app-router.test.ts tests/fixtures/app-basic/app/api/dynamic-request-headers/route.ts tests/fixtures/app-basic/app/api/dynamic-request-url/route.tsvp test run tests/app-route-handler-runtime.test.ts tests/entry-templates.test.tsvp test run tests/app-router.test.ts -t "route handler ISR"vp test run tests/nextjs-compat/app-routes.test.tsvp run vinext#buildNotes
request.headers/request.urlISR cases, so the new integration tests are vinext-specific regression coverage grounded in Next.js's currentproxyNextRequest()behavior.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.