2.7 KiB
title, order
| title | order |
|---|---|
| Deploying | 10 |
Deploying
[MODES: framework]
Introduction
React Router can be deployed two ways:
- Fullstack Hosting
- Static Hosting
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.
Templates
After running the create-react-router command, make sure to follow the instructions in the README.
Node.js with Docker
npx create-react-router@latest --template remix-run/react-router-templates/default
- Server Rendering
- Tailwind CSS
The containerized application can be deployed to any platform that supports Docker, including:
- AWS ECS
- Google Cloud Run
- Azure Container Apps
- Digital Ocean App Platform
- Fly.io
- Railway
Node with Docker (Custom Server)
npx create-react-router@latest --template remix-run/react-router-templates/node-custom-server
- Server Rendering
- Tailwind CSS
- Custom express server for more control
The containerized application can be deployed to any platform that supports Docker, including:
- AWS ECS
- Google Cloud Run
- Azure Container Apps
- Digital Ocean App Platform
- Fly.io
- Railway
Node with Docker and Postgres
npx create-react-router@latest --template remix-run/react-router-templates/node-postgres
- Server Rendering
- Postgres Database with Drizzle
- Tailwind CSS
- Custom express server for more control
The containerized application can be deployed to any platform that supports Docker, including:
- AWS ECS
- Google Cloud Run
- Azure Container Apps
- Digital Ocean App Platform
- Fly.io
- Railway
Vercel
Vercel maintains their own template for React Router. Checkout the Vercel Guide for more information.
Cloudflare Workers
Cloudflare maintains their own template for React Router. Checkout the Cloudflare Guide for more information.
Netlify
Netlify maintains their own template for React Router. Checkout the Netlify Guide for more information.
EdgeOne Pages
EdgeOne Pages maintains their own template for React Router. Checkout the EdgeOne Pages Guide for more information.
DeployHQ
DeployHQ maintains their own guide for deploying React Router v7 to your own server. Checkout the DeployHQ Guide for more information.