© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•6mo ago•
3 replies
loup

How access env variable in edge function (self hosted) ?

Well I guess we are supposed to add
.env
.env
in
/functions/.env
/functions/.env
but even doing it, env var only contain :
SB_EXECUTION_ID: ...,
HOSTNAME: ...,
JWT_SECRET: ...,
SUPABASE_URL: ...,
PATH: ...,
SUPABASE_SERVICE_ROLE_KEY: ...,
SUPABASE_DB_URL: ...,
SUPABASE_ANON_KEY: ...,
HOME: "/root",
VERIFY_JWT: "false"
SB_EXECUTION_ID: ...,
HOSTNAME: ...,
JWT_SECRET: ...,
SUPABASE_URL: ...,
PATH: ...,
SUPABASE_SERVICE_ROLE_KEY: ...,
SUPABASE_DB_URL: ...,
SUPABASE_ANON_KEY: ...,
HOME: "/root",
VERIFY_JWT: "false"

But adding a custom one in
.env
.env
file isnt working... What do I miss ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edge Function env setup
SupabaseSSupabase / help-and-questions
3y ago
Edge function, custom domain and `SUPABASE_URL` env variable
SupabaseSSupabase / help-and-questions
13mo ago
[Edge function] How change variable in function with our secret ?
SupabaseSSupabase / help-and-questions
8mo ago
How to correctly set React API URL env variable for Self hosted
SupabaseSSupabase / help-and-questions
4y ago