The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
d3 (#37201)
Francesco Sansalvadore4d26f83c0a77
diff --git a/apps/www/_blog/2025-07-16-branching-2-0.mdx b/apps/www/_blog/2025-07-16-branching-2-0.mdxnew file mode 100644index 00000000000..22e85de909b--- /dev/null+++ b/apps/www/_blog/2025-07-16-branching-2-0.mdx@@ -0,0 +1,140 @@+---+title: 'Introducing Branching 2.0'+description: 'Create, review and merge Supabase branches all within the dashboard.'+categories:+ - product+ - launch-week+tags:+ - launch-week+ - studio+date: '2025-07-16:00:00'+toc_depth: 3+author: saxon_fletcher+image: launch-week-15/day-3-branching-2-0/og.jpg+thumb: launch-week-15/day-3-branching-2-0/thumb.png+launchweek: 15+---++Branching has been a part of Supabase for some time now, a way for you to experiment or build out new features without affecting your production environment. It requires you to connect your Supabase project to a GitHub repository which automates many parts of the workflow, but this also alienates those who prefer not to use Git. Today, we are announcing Branching 2.0 which removes the Git requirement and makes it super simple to spin up new branches.++<div className="video-container mb-8">+ <iframe+ className="w-full"+ src="https://www.youtube-nocookie.com/embed/CRARnyYqrOU"+ title="Introducing Branching 2.0"+ allow="accelerometer; autoplay; clipboard-write; encrypted-media; fullscreen; gyroscope; picture-in-picture; web-share"+ allowfullscreen+ />+</div>++## What is branching?++A Supabase branch is essentially a copy of your Supabase project, minus the data. Rather than making risky changes to your production database, edge functions or configuration, you instead spin up a preview branch and make the changes there. This gives you a safe, isolated environment to work from. When you’re happy with your changes, you merge them back into production.++## Current behavior++The current implementation of branching requires a connection to a GitHub repo. For every GitHub pull request created, a corresponding Supabase branch is also created and kept in sync. Database schema/migrations, functions and configuration all stored within your repo and synced up to Supabase when your commits are pushed. For those who want to work in a local and code first way, this is an ideal workflow, however, this is not suitable for those who prefer to work in a database first or no-code way, including AI Builders.++## New behavior++With these new updates you can now create branches with Git, without Git, or a combination of both. This can be done directly through the dashboard, Supabase CLI, or the [Management API](https://supabase.com/docs/reference/api/introduction). Every branch is a direct copy of production, including schema, functions and configurations. You can then connect your app, make changes, and when ready to launch, you have the option to pull those changes down to your codebase or review and merge without leaving the dashboard. For those using separate Supabase projects for this, you no longer need to do so.++### How it works++For this walkthrough we’ll focus purely on a _Gitless_ workflow. If you are someone who prefers to work in a code-first way, you can view our more extensive [guide to branching](https://supabase.com/docs/guides/deployment/branching).++#### Create a new branch.++<Img+ alt="Database components"+ src={{+ light: '/images/blog/launch-week-15/day-3-branching-2-0/create-branch.png',+ dark: '/images/blog/launch-week-15/day-3-branching-2-0/create-branch.png',+ }}+/>++Give your branch a name, optionally sync it to a GitHub branch. If your production branch has previous migrations (e.g., via CLI `db push` ) then these will be run on the new branch. If your production branch has no previous migrations (e.g., all edits have been made through the Table Editor) then a `db dump` will be performed and run as a migration.++#### Make changes to the new branch++<Img+ alt="Database components"+ src={{+ light: '/images/blog/launch-week-15/day-3-branching-2-0/view-branches.png',+ dark: '/images/blog/launch-week-15/day-3-branching-2-0/view-branches.png',+ }}+/>++Use the table editor, SQL editor, connection string or any other means to make changes to your schema or functions.++#### Open a merge request++<Img+ alt="Database components"+ src={{+ light: '/images/blog/launch-week-15/day-3-branching-2-0/view-merge-requests.png',+ dark: '/images/blog/launch-week-15/day-3-branching-2-0/view-merge-requests.png',+ }}+/>++<Img+ alt="Database components"+ src={{+ light: '/images/blog/launch-week-15/day-3-branching-2-0/view-merge-request.png',+ dark: '/images/blog/launch-week-15/day-3-branching-2-0/view-merge-request.png',+ }}+/>++You, someone in your team, or the Supabase Assistant can then review the changes made via the merge page.++#### Pull in latest updates from production++If your branch schema or edge functions are out of date, you will first need to pull in the latest changes from production. Note that by doing this any edge function modifications will be lost but new functions will remain in place untouched.++#### Merge to production++<Img+ alt="Database components"+ src={{+ light: '/images/blog/launch-week-15/day-3-branching-2-0/review-with-ai.png',+ dark: '/images/blog/launch-week-15/day-3-branching-2-0/review-with-ai.png',+ }}+/>++When ready, click the merge button and watch your changes be deployed to production. If your branch is a preview branch you can now choose to remove it or keep it open.++### Current limitations++There are a few limitations you should be aware of before deciding to use branching without git.++- Custom roles created through the dashboard are not captured on branch creation.+- Only public schema changes are supported right now.+- Extensions are not included in the diff process+- Branches can only be merged to main; merging between preview branches is not supported.+- If your branch is out of date, you can pull in latest changes from main, but keep in mind that all functions will be overwritten.+- Deleting functions must be done manually on main branch.+- Migration conflicts must be manually resolved on the preview branch.+- If you have run migrations on main, new branches will be created from existing migrations instead of a full schema dump.++## When to use++The following table can help you decide whether to use branching with or without git.++| | Git | Without Git |+| --------------------- | -------------------- | --------------------------- |+| Isolated environment | ✅ | ✅ |+| Friction | Low code | No code |+| Ease of use | Extensive repo setup | One click from dashboard |+| Merging to production | via Pull Request | via Merge Request |+| Conflict resolution | File based | None |+| Version control | Config as code | Only migrations are tracked |++## End state++We ultimately want you to be able to work in a way that produces the highest quality software in the shortest time possible. Your workflows may change as you, your team or your product evolves, and we must allow you to move between workflows seamlessly. If you want to start building directly in the dashboard then later move everything to a codebase, you should be able to do that. If you want to spin up a branch for prototyping then later pull down changes to a local migration, that should also be possible.++We aren’t quite there yet, but through the combination of our CLI and web interface, that vision is closer than ever.++## Getting started++We want to stress that these branching updates are in their early stages and thus behind a feature preview. Anyone can opt-in to them via the dashboard but before you do, please read through the existing limitations as it might not yet be suitable for your use case. If you do make use of branching, please reach out with feedback, we’d love to hear it.diff --git a/apps/www/components/Hero/Hero.tsx b/apps/www/components/Hero/Hero.tsxindex 313dbc7a840..88bbe035a52 100644--- a/apps/www/components/Hero/Hero.tsx+++ b/apps/www/components/Hero/Hero.tsx@@ -19,7 +19,7 @@ const Hero = () => {<AnnouncementBadgeurl="/launch-week#main-stage"badge="LW15"- announcement={`Day 2: ${announcement.launch}`}+ announcement={`Day 3: ${announcement.launch}`}className="lg:-mt-8"hasArrow/>diff --git a/apps/www/components/LaunchWeek/15/data/lw15_data.tsx b/apps/www/components/LaunchWeek/15/data/lw15_data.tsxindex a4c4aca81ec..9ecd8099392 100644--- a/apps/www/components/LaunchWeek/15/data/lw15_data.tsx+++ b/apps/www/components/LaunchWeek/15/data/lw15_data.tsx@@ -93,7 +93,7 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [d: 2,dd: 'Tue',shipped: true,- isToday: true,+ isToday: false,hasCountdown: false,blog: '/blog/analytics-buckets',date: 'Tuesday',@@ -123,18 +123,18 @@ const days: (isDark?: boolean) => WeekDayProps[] = (isDark = true) => [id: 'day-3',d: 3,dd: 'Wed',- shipped: false,- isToday: false,+ shipped: true,+ isToday: true,hasCountdown: false,- blog: '/blog/',+ blog: '/blog/branching-2-0',date: 'Wednesday',published_at: '2025-04-02T07:00:00.000-07:00',- title: '',+ title: 'Introducing Branching 2.0',description: '',links: [{type: 'video',- href: '',+ href: 'CRARnyYqrOU',},],steps: [diff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/create-branch.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/create-branch.pngnew file mode 100644index 00000000000..2cfbc316394Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/create-branch.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/og.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/og.pngnew file mode 100644index 00000000000..438df504a54Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/og.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/review-with-ai.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/review-with-ai.pngnew file mode 100644index 00000000000..1ea2f1261b9Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/review-with-ai.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/thumb.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/thumb.pngnew file mode 100644index 00000000000..3658102d33cBinary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/thumb.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-branches.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-branches.pngnew file mode 100644index 00000000000..67383ccd626Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-branches.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-request.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-request.pngnew file mode 100644index 00000000000..1ba8d5170c6Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-request.png differdiff --git a/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-requests.png b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-requests.pngnew file mode 100644index 00000000000..a3f960a54e8Binary files /dev/null and b/apps/www/public/images/blog/launch-week-15/day-3-branching-2-0/view-merge-requests.png differdiff --git a/apps/www/public/rss.xml b/apps/www/public/rss.xmlindex f5326e66969..5c999067e3f 100644--- a/apps/www/public/rss.xml+++ b/apps/www/public/rss.xml@@ -5,9 +5,16 @@<link>https://supabase.com</link><description>Latest news from Supabase</description><language>en</language>- <lastBuildDate>Tue, 15 Jul 2025 00:00:00 -0700</lastBuildDate>+ <lastBuildDate>Wed, 16 Jul 2025 00:00:00 -0700</lastBuildDate><atom:link href="https://supabase.com/rss.xml" rel="self" type="application/rss+xml"/><item>+ <guid>https://supabase.com/blog/branching-2-0</guid>+ <title>Introducing Branching 2.0</title>+ <link>https://supabase.com/blog/branching-2-0</link>+ <description>Create, review and merge Supabase branches all within the dashboard.</description>+ <pubDate>Wed, 16 Jul 2025 00:00:00 -0700</pubDate>+</item>+<item><guid>https://supabase.com/blog/stripe-engine-as-sync-library</guid><title>Stripe-To-Postgres Sync Engine as standalone Library</title><link>https://supabase.com/blog/stripe-engine-as-sync-library</link>diff --git a/packages/ui-patterns/src/Banners/data.json b/packages/ui-patterns/src/Banners/data.jsonindex 82634afe202..66e32000377 100644--- a/packages/ui-patterns/src/Banners/data.json+++ b/packages/ui-patterns/src/Banners/data.json@@ -1,7 +1,7 @@{- "text": "LW15: Day 2",- "launch": "Supabase Analytics Buckets",- "launchDate": "2025-07-15T08:00:00.000-07:00",+ "text": "LW15: Day 3",+ "launch": "Branching 2.0",+ "launchDate": "2025-07-16T08:00:00.000-07:00","link": "/launch-week#main-stage","cta": "Learn more"}