Skip to content

Commit 757332f

Browse files
authored
docs: add default environment variables available in hosted enviroment (supabase#38666)
1 parent 87ab63a commit 757332f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

apps/docs/content/guides/functions/secrets.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ Edge Functions have access to these secrets by default:
1414
- `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
1515
- `SUPABASE_DB_URL`: The URL for your Postgres database. You can use this to connect directly to your database
1616

17+
In a hosted environment, functions have access to the following environment variables:
18+
19+
- `SB_REGION`: The region function was invoked
20+
- `SB_EXECUTION_ID`: A UUID of function instance ([isolate](/docs/guides/functions/architecture#4-execution-mechanics-fast-and-isolated))
21+
- `DENO_DEPLOYMENT_ID`: Version of the function code (`{project_ref}_{function_id}_{version}`)
22+
1723
---
1824

1925
## Accessing environment variables

0 commit comments

Comments
 (0)