mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #1096] [MERGED] feat(prerender): add concurrency flag #1092
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#1092
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/1096
Author: @NathanDrake2406
Created: 5/6/2026
Status: ✅ Merged
Merged: 5/6/2026
Merged by: @james-elicx
Base:
main← Head:nathan/prerender-concurrency📝 Commits (1)
bf50a38feat(prerender): add concurrency flag📊 Changes
7 files changed (+200 additions, -2 deletions)
View changed files
📝
packages/vinext/src/build/run-prerender.ts(+7 -0)📝
packages/vinext/src/cli-args.ts(+27 -0)📝
packages/vinext/src/cli.ts(+9 -1)📝
packages/vinext/src/deploy.ts(+9 -1)📝
tests/cli-args.test.ts(+52 -0)📝
tests/deploy.test.ts(+24 -0)➕
tests/run-prerender-concurrency.test.ts(+72 -0)📄 Description
Summary
Adds a configurable prerender concurrency flag for the existing prerender worker pool:
vinext build --prerender-concurrency <count>vinext deploy --prerender-concurrency <count>The flag accepts positive integers in both space-separated and equals forms, and rejects missing, empty, zero, negative, non-integer, and flag-looking values. The validated value is threaded through
runPrerender()to both App Router and Pages Router prerender phases, including hybrid builds. Defaults remain unchanged when the flag is omitted.Part of #563.
Validation
vp test run tests/cli-args.test.ts tests/deploy.test.ts tests/run-prerender-concurrency.test.tsvp check tests/cli-args.test.ts tests/deploy.test.ts tests/run-prerender-concurrency.test.tsvp check --fixon staged files🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.