mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #733] feat: lightweight worker for static exports #804
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#804
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/733
Author: @raed04
Created: 4/1/2026
Status: 🔄 Open
Base:
main← Head:claude/objective-torvalds📝 Commits (1)
00a2724feat: lightweight worker for static exports (#566)📊 Changes
3 files changed (+273 additions, -15 deletions)
View changed files
📝
packages/vinext/src/deploy.ts(+58 -14)📝
packages/vinext/src/index.ts(+2 -1)📝
tests/deploy.test.ts(+213 -0)📄 Description
Summary
Closes #566 — strips the full worker from static export builds.
next.configsetsoutput: "export",vinext deploynow generates a wrangler config that serves pre-rendered files directly via Cloudflare's built-in asset serving — no worker entry, no ASSETS/IMAGES bindings, no KV namespaceisStaticExportdetection toProjectInfo(heuristic: reads next.config, strips//and/* */comments, matchesoutput: "export")@cloudflare/vite-pluginChanges
packages/vinext/src/deploy.tsdetectStaticExport(),isStaticExportonProjectInfo, static branch ingenerateWranglerConfig, skip worker ingetFilesToGeneratepackages/vinext/src/index.tsnextConfig.output !== "export"(already-loaded config)tests/deploy.test.ts.cjs/.ts/.mjsdetection, block comments, standalone negative, empty/missing config, config priority, directdetectStaticExport, static/non-static wrangler schema, regression guardsTest plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.