Learn more about Remix Stacks.
npx create-remix --template edmundhung/remix-worker-template
What's included?
Please make sure the node version is >= 16.7. If you are using nvm
, just run:
nvm use
This allows miniflare to serve a development environment as close to the actual worker runtime as possibile.
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.
Before running the tests, please ensure the worker is built:
npm run build && npm run test
To deploy your Remix app, simply do it with Wrangler using:
npx wrangler publish
The template ships a development workflow which is triggered whenever new changes are pushed.
To allow GitHub deploying the worker for you, following variables are required:
These values could be found / created on your Cloudflare Dashboard