Branching - Early access | Feedback discussion #18937
Replies: 244 comments 566 replies
-
What is Supabase Branching? |
Beta Was this translation helpful? Give feedback.
-
|
Hope you're all doing great! I've been working with supabase on a project for 2 months and noticed something I wanted to share with you that would cause issues for supabase branching. As our projects grow, our seed file (you know, the trusty I've been sidestepping this by ditching the massive seed file and scripting my local database seeding instead. It's a lot like how migrations work: each file is timestamped and has a quick description, and they run in a set order. This means I have separate files for different seeding needs, like permission tables and location table inserts broken down into 1K-insert chunks – it’s pretty neat. Currently, Supabase runs whatever is in I reckon this could be something worth considering for your roadmap for seeding a branch. Thanks for all the hard work you've been putting into Supabase, and I'm excited to see how branching evolves! |
Beta Was this translation helpful? Give feedback.
-
|
if new branch is created, new Supabase url for client is reserved on new branch?? I maen if I use following url on main branch Can I use a different url for a new branch like staging? For example, |
Beta Was this translation helpful? Give feedback.
-
|
Can branching be used as a "dev" environment? |
Beta Was this translation helpful? Give feedback.
-
|
According to the docs: "The database is only seeded once, when the preview branch is created. To rerun seeding, delete the preview branch and recreate it." But when I deleted and recreated the branch ( |
Beta Was this translation helpful? Give feedback.
-
|
So far pretty good with supabase branching. Should I disable my existing github actions that migrate the production database when merging to the production branch? Is it expected that the migrations should be applied via this new Supabase branching integration? |
Beta Was this translation helpful? Give feedback.
-
|
@MildTomato does supabase branching support monorepos? Our |
Beta Was this translation helpful? Give feedback.
-
|
any advice on how to handle issues like this that require setting up things in the database (eg. webhooks)?
|
Beta Was this translation helpful? Give feedback.
-
|
Hello! Loving the concept so far. After spending some time working around issues (seeding not being run and functions not being deployed), I realised you have a CLI for managing branches (which looks great btw!), and I think it could be highlighted more, as I was under the impression that only the "managed" workflows were supported (i.e only Github + Vercel), but atleast for me the feature set is complete enough that I could run this anywhere (and if i missed that that was possible, many others probably have too) |
Beta Was this translation helpful? Give feedback.
-
|
We are in dire need of selecting non root directories as the Supabase root. We are using a monorepo with TurboRepo. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, we're testing each branch by setting up a local supabase instance in GH Actions for every run. But that setup takes a significant amount of time compared to the actual test run. The flow that we have in mind is:
Are there any blockers that we should be aware of? Moreover, once this is set up and the Vercel app is used, I'm assuming the preview instances will use the new branched supabase. We also don't want any changes in the preview branches going back into main (which I assume will not happen as we are not using supabase migrations in the preview branches). Can you please confirm this? |
Beta Was this translation helpful? Give feedback.
-
|
Feedback/idea: It'd be nice (or even crucial) for the preview branch to copy most local and/or production branch settings. Examples:
|
Beta Was this translation helpful? Give feedback.
-
|
For some reason I'm not seeing migrations running or seed data populated for a preview branch (feature or development). When I create a PR, it's spinning up the branch, just no tables or seed data. |
Beta Was this translation helpful? Give feedback.
-
|
We handle our migrations via Prisma migrate. Are there any plans to support the |
Beta Was this translation helpful? Give feedback.
-
|
Hey Folks I want to Setup a Supa Base Branching for the Automation Testing so the scenario is Below So how i can do it can anyone help me out in this Thanks in Advance. |
Beta Was this translation helpful? Give feedback.
-
|
@MildTomato Hi, |
Beta Was this translation helpful? Give feedback.
-
|
I have the same problem @pavelpoley. To solve it, I did the following. |
Beta Was this translation helpful? Give feedback.
-
|
Ok |
Beta Was this translation helpful? Give feedback.
-
|
Hey folks, I've read through most of the comments here, but couldn't quite find something that matched my use case. So here it comes. Context My expectation
Reality Now, I find this a bit weird because running migrations against an empty DB doesn't really tell me much. And even worse, now I should go in and manually update my seed to update the latest migrated state... Meh. My intention was to have a seed of prod data, so that I can reliably test migrations even when not everyone has that data locally (people have their own data setup for testing stuff - only CI must have that prod-like data). So, the way this currently works adds a lot of burden on my end, when it seems like this could be easily mitigated by changing when migrations are run. Even more so, I'm having trouble seeing what exactly the benefit of these branches is when I can't easily get realistic data into them. |
Beta Was this translation helpful? Give feedback.
-
|
Really a seed file????? |
Beta Was this translation helpful? Give feedback.
-
|
Can we have a diff compare tool? Especially when we use 2 proejcts for staging and prod |
Beta Was this translation helpful? Give feedback.
-
|
Hey. Additional Roles are not copied and are leading to an error when creating a new branch. |
Beta Was this translation helpful? Give feedback.
-
|
Hey. I see the option to copy data from PITR when creating new branch is not on the UI anymore. Why is that? Is that feature not available anymore or you moved it somewhere else? |
Beta Was this translation helpful? Give feedback.
-
|
How do I use branching whilst using Drizzle (and the migrations from Drizzle)? |
Beta Was this translation helpful? Give feedback.
-
|
Hey everyone, I have a use case with branching where I noticed something I’d like to clarify or suggest as an improvement. When I reverted a PR that had been previously merged into the My expectation was that, since the integration tracks migrations as part of the Git branch sync, reverting a PR should also revert the applied migrations, essentially rolling back the schema changes that were introduced by that PR. Is this currently expected behavior (i.e., migrations aren’t automatically reverted), or is there a way to make the integration detect this case and trigger a reverse migration automatically? Would love to hear how others handle rollback scenarios with branching + migrations. |
Beta Was this translation helpful? Give feedback.
-
Everytime a run a migration on a branch the Auth URL Configuration resets to localhost, I think this should be treated as a bug and fixed
|
Beta Was this translation helpful? Give feedback.
-
|
Disconnecting the main branch from GitHub is causing a lot of headache in the "Branching via Dashboard" beta feature |
Beta Was this translation helpful? Give feedback.
-
|
ok
…________________________________
From: Benjamin Ciccarelli ***@***.***>
Sent: 13 November 2025 00:38
To: supabase/supabase ***@***.***>
Cc: Sakshi ***@***.***>; Manual ***@***.***>
Subject: Re: [supabase/supabase] Branching - Early access | Feedback discussion (Discussion #18937)
Disconnecting the main branch from GitHub is causing a lot of headache in the "Branching via Dashboard" beta feature, I'm not able to make a preview branch without migrations failing because the migration history is broken for main.
—
Reply to this email directly, view it on GitHub<#18937 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A4XLCTIP3T6DRREHLVVEF3334OASLAVCNFSM6AAAAAA7KFV5GSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTIOJVGEYTCMY>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
|
how to increase the limit of active branches? It seems I can't get past 10. |
Beta Was this translation helpful? Give feedback.
-
|
Issue from Problem When creating a preview branch via CLI or API, the branch status returns as "ready" before database connections and other services are fully operational. This causes CI/CD pipeline failures when workflows attempt to use the branch immediately after the ready status is returned. Steps to Reproduce Create a new preview branch using supabase branches create or GitHub integration Actual Behavior API returns "ready" status Impact This breaks the API contract and forces workarounds like: Polling for ACTIVE_HEALTHY database status separately Environment Supabase CLI version: 2.51.0 Issue #39604 |
Beta Was this translation helpful? Give feedback.






Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion is for tracking feedback and possible issues for Supabase Branching.
This will help us plan a roadmap for the feature going forward.
Vote for hosting provider integrations here and Git providers here.
Beta Was this translation helpful? Give feedback.
All reactions