The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: document network restrictions for branching cluster (#34863)
Han Qiaoa38d76b5717c
diff --git a/apps/docs/content/guides/deployment/branching.mdx b/apps/docs/content/guides/deployment/branching.mdxindex 02b827b25b7..a31289fed53 100644--- a/apps/docs/content/guides/deployment/branching.mdx+++ b/apps/docs/content/guides/deployment/branching.mdx@@ -638,6 +638,22 @@ A deployment might fail for various reasons, including invalid SQL statements anTo check the error message, see the Supabase workflow run for your branch under the [View logs](/dashboard/project/_/branches) section.+### Network restrictions++If you enable [network restrictions](/docs/guides/platform/network-restrictions) on your project, the branching cluster will be blocked from connecting to your project by default. This often results in database connection failures when migrating your production project after merging a development branch.++The workaround is to explicitly allow the IPv6 CIDR range of the branching cluster in your project's [database settings](https://supabase.com/dashboard/project/_/settings/database) page: `2600:1f18:2b7d:f600::/56`++<Image+ alt="Network restrictions to allow connections from branching cluster"+ src={{+ dark: '/docs/img/guides/branching/cidr-dark.png',+ light: '/docs/img/guides/branching/cidr-light.png',+ }}+ className="max-w-[550px] !mx-auto border rounded-md"+ zoomable+/>+### Schema drift between preview branchesIf multiple preview branches exist, each preview branch might contain different schema changes. This is similar to Git branches, where each branch might contain different code changes.diff --git a/apps/docs/public/img/guides/branching/cidr-dark.png b/apps/docs/public/img/guides/branching/cidr-dark.pngnew file mode 100644index 00000000000..a2ea3ff8637Binary files /dev/null and b/apps/docs/public/img/guides/branching/cidr-dark.png differdiff --git a/apps/docs/public/img/guides/branching/cidr-light.png b/apps/docs/public/img/guides/branching/cidr-light.pngnew file mode 100644index 00000000000..1f32229a028Binary files /dev/null and b/apps/docs/public/img/guides/branching/cidr-light.png differ