mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #574] [MERGED] refactor: use vinext startProdServer HTTP for prerendering #683
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#683
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/574
Author: @james-elicx
Created: 3/17/2026
Status: ✅ Merged
Merged: 3/17/2026
Merged by: @james-elicx
Base:
main← Head:opencode/jolly-nebula📝 Commits (6)
99a923arefactor: remove wrangler from prerender, use startProdServer HTTP for all buildse6bfb0f.314ad1bfix: redirect:manual for prerender fetch, remove wrangler peer dep5deec37refactor: extract readPrerenderSecret to shared utility, fix server-manifest secret rotationd68f266fix: warn on non-OK response from pages-static-paths prerender endpointa008ccffix: guard static-params fetch against non-OK responses in prerenderApp📊 Changes
13 files changed (+447 additions, -455 deletions)
View changed files
📝
packages/vinext/package.json(+2 -7)📝
packages/vinext/src/build/prerender.ts(+223 -345)📝
packages/vinext/src/build/run-prerender.ts(+43 -59)➕
packages/vinext/src/build/server-manifest.ts(+27 -0)📝
packages/vinext/src/index.ts(+37 -0)📝
packages/vinext/src/server/prod-server.ts(+80 -2)📝
pnpm-lock.yaml(+0 -3)📝
tests/app-router.test.ts(+4 -4)📝
tests/helpers.ts(+3 -4)📝
tests/pages-i18n-prod.test.ts(+1 -1)📝
tests/pages-router-concurrency.test.ts(+5 -5)📝
tests/pages-router.test.ts(+16 -16)📝
tests/prerender.test.ts(+6 -9)📄 Description
Summary
findWranglerConfig,loadWrangler,WranglerWorker,isWorkersBuildbranching,_wranglerDev/sharedWranglerDevinternals, and theisWorkersBuild/wranglerConfigPath/rootfields fromPrerenderAppOptions)startProdServerinstance, using the existing prerender secret mechanismgenerateStaticParamsMapnot being accessible from CF bundles (named exports are stripped):prod-server.tsnow falls through to the RSC handler for/__vinext/prerender/static-paramsand/__vinext/prerender/pages-static-paths, where the map is available in the handler's closureTest results
vp check— cleantests/prerender.test.ts— 46/46 pass (including CF Workers dynamic route tests that were previously failing)tests/static-export.test.ts— 14/14 pass🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.