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 atsupabase/functions/.env
, which is automatically loaded onsupabase start
- Through the
--env-file
option forsupabase functions serve
, for example:supabase functions serve --env-file ./path/to/.env-file