© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
aith

Managing envs in local supabase development

I am trying to understand how the envs work for when I am using supabase locally for development and then when I push my code for the prod.
If I push the functions with
supabase functions deploy
supabase functions deploy
do the
.env
.env
secrets get updated as well? How does that work?
Currently I am investigating something where my app is broken after I pushed the changes when I was developing it locally and I am seeing :
"hint": "Double check your Supabase 
"hint": "Double check your Supabase 
anon
 or 
 or 
service_role
 API key."
 API key."

After seeing the secrets in the edge functions, I am seeing that some of the secrets got updated as well.

So I am just wondering how that works.
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

Supabase broadcast not working in local development
SupabaseSSupabase / help-and-questions
6mo ago
Support for Supabase Queue in Local Development Environment
SupabaseSSupabase / help-and-questions
14mo ago
Supabase Storage In Local Development Not Returning Images
SupabaseSSupabase / help-and-questions
4y ago
supabase cron & multi envs.
SupabaseSSupabase / help-and-questions
13mo ago