/remix-cloudflare-demo

A demo of Remix running on Cloudflare workers.

Primary LanguageTypeScriptMIT LicenseMIT

remix-worker-template

The current starter template is based on Remix 0.20.1.

Give it a try

The deploy button will guide you through the setup for CF_API_TOKEN and CF_ACCOUNT_ID on the UI. But you are still required to provide the REMIX_TOKEN as a repository secret yourself for the deploy action to work properly.

Deploy to Cloudflare Workers

Development

To starts your app in development mode, rebuilding assets on file changes, the recommended approach is:

npm run dev

This will run your remix app in dev mode using miniflare with the Cypress test runner opened.

Deployment

First, preview your app with:

npx wrangler preview

When confirmed everythings works, deploy the worker with Wrangler using:

npm run deploy