> For the complete documentation index, see [llms.txt](https://automatethem.gitbook.io/supabase-js-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://automatethem.gitbook.io/supabase-js-doc/managing-environment-variables.md).

# Managing Environment Variables

<https://supabase.com/docs/guides/functions/secrets>

```
Default secrets#
Edge Functions have access to these secrets by default:

SUPABASE_URL: The API gateway for your Supabase project.
SUPABASE_ANON_KEY: The anon key for your Supabase API. This is safe to use in a browser when you have Row Level Security enabled.
SUPABASE_SERVICE_ROLE_KEY: The service_role key for your Supabase API. This is safe to use in Edge Functions, but it should NEVER be used in a browser. This key will bypass Row Level Security.
SUPABASE_DB_URL: The URL for your PostgreSQL database. You can use this to connect directly to your database.
```
