Instructions for setting up environment variables.
Each environment has its own file (staging.env, production.env), loaded by
mise when MISE_ENV is set:
export MISE_ENV=staging # loads instance/staging.env via mise.staging.tomlThese files hold credentials and are gitignored. Verify with echo $ENVIRONMENT.
API token the Terraform Cloudflare provider uses.
- Go to Cloudflare dashboard → profile icon (top right) → Profile → API Tokens
- Click Create Token → Create Custom Token
- Name it (e.g.
Infrastructure Staging) and add the permissions:- Account → Workers R2 Storage → Edit
- Zone → Zone → Edit
- Scope it to a specific account under Account Resources
- Continue to summary → Create Token
Cloudflare account ID where resources are created.
- Go to Cloudflare dashboard
- Copy the 32-character hex ID from the URL right after
dash.cloudflare.com/, or find it under any zone's Overview page in the right sidebar as Account ID