Environment Variables
This is a static site, so most variables are optional. See .env.example for the
full list.
Local Development
Section titled “Local Development”Copy .env.example to .env for build-time variables:
# Public production URL (canonical/OG/sitemap)SITE_URL=http://localhost:4321
# Optional analyticsPUBLIC_GA_MEASUREMENT_ID=PUBLIC_GTM_ID=Production
Section titled “Production”Configure variables via Cloudflare Dashboard > Pages > your-project >
Settings > Environment variables. Set SITE_URL and any optional analytics,
SEO verification, consent, or privacy-policy values used by the site.
The optional R2_MEDIA bucket is a Cloudflare binding configured in
wrangler.jsonc, not an environment variable.
Secrets Validation
Section titled “Secrets Validation”The validate:secrets script scans the repo for accidentally committed secrets:
pnpm run validate:secretsIt runs during CI and fails the build if a likely secret is detected.