Apply migrations to local database
npx wrangler d1 migrations apply ward-gaat-trouwen --local
Run the dev server:
npm run dev
To run Wrangler:
npm run build
npm run 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
.
First, build your app for production:
npm run build
Then, deploy your app to Cloudflare Pages:
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.