Demo app using Remix with Vite on Cloudflare Workers.
Generate types for your Cloudflare bindings in wrangler.toml
:
pnpm typegen
You will need to rerun typegen whenever you make changes to wrangler.toml
.
Run the Vite dev server:
pnpm dev
To run Wrangler:
pnpm build
pnpm start
If you don't already have an account, then create a cloudflare account here and after verifying your email address with Cloudflare, go to your dashboard and set up your free custom Cloudflare Workers subdomain.
Once that's done, you should be able to deploy your app:
pnpm run deploy