# Cloudflare Pages config for the marketing site (project `pcbjam-site`).
#
# This exists to keep the Function's RUNTIME CONTRACT in version control rather
# than living only in whatever flags the Pages project happened to be created
# with — the same reasoning as apps/server/wrangler.jsonc declaring its custom
# domain in code.
#
# nodejs_compat is for the `resend` SDK used by functions/api/waitlist.ts.
#
# Secrets are NOT here — they are set once, out of band:
#   wrangler pages secret put RESEND_API_KEY --project-name pcbjam-site
# and locally come from .dev.vars (gitignored). WAITLIST_ALLOWED_ORIGINS is
# deliberately unset so it keeps the default in functions/api/waitlist.ts.
#
# The custom domains (www.pcbjam.com and the apex) are attached out of band too —
# there is no `wrangler pages domain` subcommand; see deploy/site/README.md.

name = "pcbjam-site"
pages_build_output_dir = "./dist"
compatibility_date = "2026-06-01"
compatibility_flags = ["nodejs_compat"]
