/remix-routes-size-benchmark

Demo app using Remix with Vite on Cloudflare Workers

Primary LanguageTypeScript

Remix + Vite + Cloudflare Workers Playground

Demo app using Remix with Vite on Cloudflare Workers.

Typegen

Generate types for your Cloudflare bindings in wrangler.toml:

pnpm typegen

You will need to rerun typegen whenever you make changes to wrangler.toml.

Development

Run the Vite dev server:

pnpm dev

To run Wrangler:

pnpm build
pnpm start

Deployment

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