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
This template comes with Tailwind CSS already configured for a simple default starting experience. You can use whatever css framework you prefer. See the Vite docs on css for more information.