logo

Environment Variables

The minimum set of environment variables required by the template

Core Runtime

APP_NAME, APP_DOMAIN, and BETTER_AUTH_SECRET are required for setup. APP_BASE_URL is generated by pre-build from APP_DOMAIN.

Optional Services

R2_ENABLED, QUEUE_NAMES, and CRONS control optional Cloudflare services. KV is always enabled.

Email Auth

  • EMAIL_ENABLED email auth feature switch
  • EMAIL_SIGNUP_ENABLED email sign-up switch
  • EMAIL_REQUIRE_VERIFICATION require verification after sign-up
  • EMAIL_USER_ACTION_COOLDOWN_SECONDS cooldown window for user email actions
  • EMAIL_RESEND_API_KEY Resend API key
  • EMAIL_FROM sender address such as Auth <auth@mg.example.com>
  • EMAIL_SIGNUP_DOMAIN_ALLOWLIST sign-up domain allowlist separated by ;

AI Providers

The chat and image modules only depend on their provider specific keys and model names.