本页还没有译文
本页 34 段还没译成日本語,下面显示的是英文原文。Deploying
还没翻译译自英文(reactrouter.com)本页 34 段都还没译
Deploying
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 to your own server. Checkout the DeployHQ Guide for more information.
Hostinger
Hostinger supports deploying React Router applications with server rendering on its managed Node.js hosting, including automatic deployments from GitHub. Checkout the Hostinger Guide for more information.