[PR #1096] [MERGED] feat(prerender): add concurrency flag #1092

Closed
opened 2026-05-06 13:11:56 +02:00 by BreizhHardware · 0 comments

📋 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: mainHead: nathan/prerender-concurrency


📝 Commits (1)

  • bf50a38 feat(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.ts
  • vp check tests/cli-args.test.ts tests/deploy.test.ts tests/run-prerender-concurrency.test.ts
  • commit hook: vp check --fix on staged files

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cloudflare/vinext/pull/1096 **Author:** [@NathanDrake2406](https://github.com/NathanDrake2406) **Created:** 5/6/2026 **Status:** ✅ Merged **Merged:** 5/6/2026 **Merged by:** [@james-elicx](https://github.com/james-elicx) **Base:** `main` ← **Head:** `nathan/prerender-concurrency` --- ### 📝 Commits (1) - [`bf50a38`](https://github.com/cloudflare/vinext/commit/bf50a38d343287f275025733c03313e36f7d76e2) feat(prerender): add concurrency flag ### 📊 Changes **7 files changed** (+200 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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.ts` - `vp check tests/cli-args.test.ts tests/deploy.test.ts tests/run-prerender-concurrency.test.ts` - commit hook: `vp check --fix` on staged files --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-06 13:11:56 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#1092
No description provided.