Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’7mo agoβ€’
5 replies
Polyglot

Vercel preview build isn't getting Supabase branch env vars

I am trying to get the Vercel preview deployments working with Supabase branches, but I have been unsuccessful so far.

The branch is being created via the Supabase github integration when I open a PR, but the environment variables never get updated.

The documentation claims

As branching integration is tied to the Preview Deployments feature in Vercel, there are possible race conditions between Supabase setting correct variables, and Vercel running a deployment process. Because of that, Supabase is always automatically re-deploying the most recent deployment of the given pull request.
(https://supabase.com/docs/guides/deployment/branching/integrations)

but I have never seen such a redeploy, and my Vercel builds always have the main branch environment variables.

Some additional info: my Supabase organization is managed by Vercel marketplace, and was set up through Vercel.
image.png
Integrations | Supabase Docs
Use Supabase branching with hosting providers and other tools.
Integrations | Supabase Docs
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Supabase brancing - vercel preview env variables get overwritten
SupabaseSSupabase / help-and-questions
4w ago
Supabase preview branch is very buggy.
SupabaseSSupabase / help-and-questions
5mo ago
Supabase branch API URL/anon key for expo preview build
SupabaseSSupabase / help-and-questions
5mo ago
Vercel integration's automatic ENV vars are broken
SupabaseSSupabase / help-and-questions
6mo ago