All templates

Deploy React Router (Remix) on Rebasable

React Router framework mode, the successor of Remix: server rendering, loaders and actions.

Runtime: node Free instance nodereactremix

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/dev codemod; the deploy settings stay the same.
  • Prefer a pure SPA? Set ssr: false in react-router.config.ts and deploy build/client as a static site with a rewrite to /index.html.