Skip to content

docs(react-router): build with React Router's CLI when prerendering - #948

Open
hyfdev wants to merge 1 commit into
mainfrom
docs/react-router-prerender-build
Open

hyfdev wants to merge 1 commit into
mainfrom
docs/react-router-prerender-build

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

In a React Router 8 app with prerender set in react-router.config.ts, void deploy writes the prerendered pages and then hangs before the upload.

React Router 8's prerender step leaves its watchers open, so vite build and vp build never exit (remix-run/react-router#15427).

React Router 7.18.7 exits normally.

react-router build runs the same build and exits, and in a Void app its Worker output is byte-identical to that of vite build.

The React Router guide now says to set inference.build to react-router build when the app prerenders.

Void's default build command stays the same, since the hang is in React Router and a fix is open upstream (remix-run/react-router#15429).

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-react-router-prerender-build-void-cloud.voidzero-docs.workers.dev (commit 7c63fad)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://83f3d322-void-cloud.voidzero-docs.workers.dev 7c63fad 2026-11-28T07:46:30.110Z Visit the dashboard ↗

@hyfdev
hyfdev marked this pull request as ready for review November 28, 2026 07:49
Copilot AI balanced review requested due to automatic review settings November 28, 2026 07:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants