This is a template repository for creating a React Router v7 application with Cloudflare Workers.
You can use this template to quickly set up a new project. This minimal template features
- React 19
- Vite 6
- Prettier formatting
To create a new project using this template, run the following command:
npx create-react-router@latest --template AdiRishi/react-router-cloudflare-template
To deploy the project using vite dev, run:
npm run dev
To run the final build using wrangler locally, run:
npm run build
npm run start
To deploy the project using Wrangler, run:
npm run deploy