Skip to content

Environment Variables

Temp edited this page Nov 3, 2025 · 1 revision

Environment Variables

All configuration options for D1 Database Manager.

See Configuration for complete environment variable documentation.

Quick Reference

Frontend Variables

VITE_WORKER_API:

  • Worker API endpoint
  • Local dev: http://localhost:8787
  • Production: Comment out (uses window.location.origin)

See Configuration page for details.

Worker Secrets

Set via npx wrangler secret put <NAME>:

  • ACCOUNT_ID - Cloudflare account ID
  • API_KEY - Cloudflare API token
  • TEAM_DOMAIN - Cloudflare Access team domain
  • POLICY_AUD - Cloudflare Access policy AUD

See Authentication Setup and Configuration for setup instructions.

Next Steps


Need Help? See Troubleshooting or open an issue.

Clone this wiki locally