mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #178] [MERGED] Add standalone self-host output and align init production scripts #373
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#373
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/178
Author: @sankalpmukim
Created: 2/27/2026
Status: ✅ Merged
Merged: 3/30/2026
Merged by: @james-elicx
Base:
main← Head:feat/selfhost-standalone-build-start📝 Commits (10+)
17a416efeat: add standalone self-host output for vinext build09c9a2cMerge main into feat/selfhost-standalone-build-start, resolve conflictsb8c22d4fmtd9d676bAddress bonk review: fix duplicate PHASE constant, complete lazy-chunks extraction, remove dead imports, add process.exit to standalone pathc6eba51Address bonk nits: document regex patterns, move PHASE re-exports to bottom, add assets field to BuildManifestChunk4f0a549refactor(standalone): use Vite bundle graph for server externals instead of regex scan8dbc469fix(standalone): copy vinext runtime deps, add node_modules filter to cpSync, remove unused pendingWrites15e8254fix(standalone): address round-6 bonk nits — explicit root, manifest comment, pre-flight check, bare-specifier comment, export-from re-export2f8d0e8fix(standalone): address round 7 bonk review comments242cc84fix(standalone): address round 8 bonk review comments📊 Changes
13 files changed (+1154 additions, -124 deletions)
View changed files
📝
README.md(+33 -20)➕
packages/vinext/src/build/standalone.ts(+334 -0)📝
packages/vinext/src/check.ts(+4 -1)📝
packages/vinext/src/cli.ts(+39 -4)📝
packages/vinext/src/config/next-config.ts(+11 -3)📝
packages/vinext/src/index.ts(+7 -85)📝
packages/vinext/src/init.ts(+9 -2)➕
packages/vinext/src/plugins/server-externals-manifest.ts(+122 -0)📝
packages/vinext/src/server/prod-server.ts(+1 -1)➕
packages/vinext/src/utils/lazy-chunks.ts(+87 -0)➕
packages/vinext/src/utils/vinext-root.ts(+31 -0)📝
tests/init.test.ts(+14 -8)➕
tests/standalone-build.test.ts(+462 -0)📄 Description
Summary
output: \"standalone\"support invinext buildthat emitsdist/standalonewith a runnableserver.js, built artifacts, and copied runtime dependencies for self-hosted VPS deploymentsnext.configloading for build mode, and extractcomputeLazyChunksinto a shared utility so the production server no longer imports the full plugin modulevinext initto adddev:vinext,build:vinext, andstart:vinextscripts using the vinext CLI, plus docs/check metadata and new unit coverageTesting
corepack pnpm vitest run tests/init.test.ts tests/standalone-build.test.tscorepack pnpm exec oxlint packages/vinext/src/build/standalone.ts packages/vinext/src/cli.ts packages/vinext/src/init.ts packages/vinext/src/utils/lazy-chunks.ts tests/standalone-build.test.ts tests/init.test.ts packages/vinext/src/config/next-config.ts packages/vinext/src/server/prod-server.ts packages/vinext/src/index.ts packages/vinext/src/check.tscorepack pnpm --filter vinext run build🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.