Run the dev server:
npm run dev
To run Wrangler:
npm run build
npm start
Generate types for your Cloudflare bindings in wrangler.toml
:
npm run typegen
You will need to rerun typegen whenever you make changes to wrangler.toml
.
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:
npm run deploy