React Router's official template for Cloudflare
A modern, production-ready template for building full-stack React applications using React Router.
Install the dependencies:
npm install
Start the development server with HMR:
npm run dev
Your application will be available at http://localhost:5173
.
Preview the production build locally:
npm run preview
Create a production build:
npm run build
Deployment is done using the Wrangler CLI.
To build and deploy directly to production:
npm run deploy
To deploy a preview URL:
npx wrangler versions upload
You can then promote a version to production after verification or roll it out progressively.
npx wrangler versions deploy
This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever CSS framework you prefer.
Built with ❤️ using React Router.