How it works
npm run build produces build/server and build/client; npm start runs react-router-serve, which serves both and reads PORT. Loaders and actions run on the server. app/routes/healthz.ts answers the health check.
Run it locally
npm install
npm run dev # http://localhost:5173
Use it as your own repository
Copy the react-router folder of the templates repository into a new repo (the files at the root, rebasable.yaml included) and push it. Then add a Deploy button to its README, or create it from Blueprints, New blueprint in the dashboard. From then on, every push deploys, and pull requests get preview environments.
Good to know
- Coming from Remix v2? The upgrade path is the official
@react-router/devcodemod; the deploy settings stay the same. - Prefer a pure SPA? Set
ssr: falseinreact-router.config.tsand deploybuild/clientas a static site with a rewrite to/index.html.