Edge Function Secrets

Manage encrypted values for your functions
Local development & CLI

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
Self-Hosted Supabase

Change settings in.env fileanddocker-compose.ymlatfunctionsservice

Secrets can also be loaded at runtime by injecting them intomain/index.ts file