Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/integrations/frameworks/react-router.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@ void auth login
void deploy
```

If you use React Router 8 and `react-router.config.ts` sets `prerender`, tell Void to build with React Router's CLI:

```ts
import { defineConfig } from 'void/config';

export default defineConfig({
inference: { build: 'react-router build' },
});
```

Otherwise `void deploy` runs `vite build` (or `vp build` with Vite+), which doesn't exit after React Router 8 prerenders ([remix-run/react-router#15427](https://github.com/remix-run/react-router/issues/15427)), so the deploy never reaches the upload.

## Using Void Features

Most [Void platform features](../../guide/app-types.md#void-apps) work with React Router. Use them in loaders and actions:
Expand Down