Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

docs: add suapbase/functions/.env info

Ziinc9e15fc7a6c5d
diff --git a/apps/docs/pages/guides/functions/secrets.mdx b/apps/docs/pages/guides/functions/secrets.mdx
index ffbe7920042..2a3cd0181cd 100644
--- a/apps/docs/pages/guides/functions/secrets.mdx
+++ b/apps/docs/pages/guides/functions/secrets.mdx
@@ -12,6 +12,14 @@ It's common that you will need to use sensitive information or environment-speci
Deno.env.get(MY_SECRET_NAME)
```
+### Local Development
+When developing functions locally, you be able to load environment variables two ways:
+
+1. Through a default `.env` file placed at `supabase/functions/.env`, which will get loaded on `supabase start`
+2. Through the `--env-file` option for `supabase functions serve`, for example: `supabase functions serve --env-file ./path/to/.env-file`
+
+To perform a one-time setup of your local development secrets, use the first option to create the `.env` file that will apply to all functions.
+
### Default secrets
By default, Edge Functions have access to these secrets: