Cloudflare Pages + Functions + D1 — minimal auth demo.
Health check: /api/health
/api/health
If you get a 500 anywhere, open /api/health first — it will tell you if DB bindings, secrets, or tables are missing.