© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
32 replies
Duquando

Vercel integration and Supabase branching

🌲branching
I'm experiencing an issue with the Supabase Vercel integration and database branching in my project. When I open a pull request, Supabase correctly creates a new preview branch for the PR, but the corresponding Vercel preview deployment still uses the main/production branch environment variables (SUPABASE_URL, SUPABASE_ANON_KEY, etc.) instead of the branch-specific ones. I've tried both configurations:

Checking the "Preview" sync toggle → Vercel preview env vars get overwritten with production values.
Unchecking the "Preview" toggle (as suggested in recent GitHub discussions and docs) → no environment variables for the preview branch are synced at all (e.g., PUBLIC_SUPABASE_ANON_KEY and PUBLIC_SUPABASE_URL are missing entirely in Vercel's Preview scope).

Reconnecting the integration, closing/re-opening PRs, and manually redeploying previews have not resolved it. The expected behavior (automatic sync of branch-specific env vars to the matching Vercel preview deployment on PR open) is not happening.

I'm using doppler to sync all other env vars and I've removed all supabase env vars from my doppler so I'm, pretty certain that can't be the issue. Any help would be greatly appreaciated, thanks in advance
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

Email templates with Supabase branching + Vercel integration
SupabaseSSupabase / help-and-questions
4w ago
Branching and Vercel environments
SupabaseSSupabase / help-and-questions
4mo ago
Supabase Branching
SupabaseSSupabase / help-and-questions
4mo ago
supabase branching
SupabaseSSupabase / help-and-questions
4mo ago