Set up the Website Foundation template from scratch — install dependencies, configure Cloudflare services, set secrets, and deploy. Use when the user says "set up", "get started", "first deploy", "configure cloudflare", "install", "clone", "initial setup", or "how do I start".
Guide users through the complete first-run setup of the Website Foundation template.
bunx wrangler login)bun install.dev.vars.example to .dev.vars and fill in valuesbun run dev to start at localhost:4321name to your project name, change destination_address in send_email to your verified emailbunx wrangler secret put <KEY> for each secret listed in secrets referencesite in astro.config.mjs from https://example.com to your actual domainbun run deploy (builds then deploys via wrangler)The dev server uses platformProxy to simulate Cloudflare bindings locally. Secrets are read from .dev.vars (gitignored). The AI Gateway binding requires a real Cloudflare account even locally.
After setup, confirm:
bun run dev starts without errorsbun run check has no TypeScript errorsbun run test passes all 42 testsbun run build succeeds