mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
docs: add default environment variables available in hosted enviroment (#38666)
This commit is contained in:
1 parent
87ab63a1d7
commit
757332fec8
1 file changed
+6
@@ -14,6 +14,12 @@ Edge Functions have access to these secrets by default:
|
||||
- `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 Postgres database. You can use this to connect directly to your database
|
||||
|
||||
In a hosted environment, functions have access to the following environment variables:
|
||||
|
||||
- `SB_REGION`: The region function was invoked
|
||||
- `SB_EXECUTION_ID`: A UUID of function instance ([isolate](/docs/guides/functions/architecture#4-execution-mechanics-fast-and-isolated))
|
||||
- `DENO_DEPLOYMENT_ID`: Version of the function code (`{project_ref}_{function_id}_{version}`)
|
||||
|
||||
---
|
||||
|
||||
## Accessing environment variables
|
||||
|
||||
Reference in new issue
Block a user