React Router can be deployed two ways:
The official React Router templates can help you bootstrap an application or be used as a reference for your own application.
When deploying to static hosting, you can deploy React Router the same as any other single page application with React.
After running the create-react-router
command, make sure to follow the instructions in the README.
npx create-react-router@latest --template remix-run/react-router-templates/default
The containerized application can be deployed to any platform that supports Docker, including:
npx create-react-router@latest --template remix-run/react-router-templates/node-custom-server
The containerized application can be deployed to any platform that supports Docker, including:
npx create-react-router@latest --template remix-run/react-router-templates/node-postgres
The containerized application can be deployed to any platform that supports Docker, including:
Vercel maintains their own template for React Router. Checkout the Vercel Guide for more information.
Cloudflare maintains their own template for React Router. Checkout the Cloudflare Guide for more information.
Netlify maintains their own template for React Router. Checkout the Netlify Guide for more information.