Consulting site for amilliondreams.llc.
Stack: Astro + Cloudflare Pages + Pages Function (contact form)
npm install
npm run dev # http://localhost:4321
npm run build # production build → dist/
npx wrangler pages dev ./dist # test Pages Functions locallyPush to main — Cloudflare Pages CI builds automatically (once the GitHub integration is connected).
Or manually:
npm run build
npx wrangler pages deploy ./dist- Enable Email Routing for
amilliondreams.llc; verify your destination inbox. - Create a Turnstile widget; add site key as
PUBLIC_TURNSTILE_SITE_KEYenv var in Pages settings. - Add Pages secrets:
TURNSTILE_SECRET_KEY,CONTACT_TO(your inbox), optionallyCONTACT_FROM. - Attach custom domain
amilliondreams.llcin Pages → Custom domains.
| Variable | Where | Description |
|---|---|---|
PUBLIC_TURNSTILE_SITE_KEY |
Pages env (plain) | Turnstile widget site key |
TURNSTILE_SECRET_KEY |
Pages secret | Turnstile secret key |
CONTACT_TO |
Pages secret | Your real inbox |
CONTACT_FROM |
Pages env (optional) | Send-from address (default: noreply@amilliondreams.llc) |