Edge Function Secrets

Manage the secrets for your project's Edge Functions

Managing secrets and environment variables locally

Managing secrets

Local secrets and environment variables can be loaded in either of the following two ways

  • Through an .env file placed at supabase/functions/.env, which is automatically loaded on supabase start
  • Through the --env-file option for supabase functions serve, for example: supabase functions serve --env-file ./path/to/.env-file
Docs