Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

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.mdx
index 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 an
To 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 branches
If 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.png
new file mode 100644
index 00000000000..a2ea3ff8637
Binary files /dev/null and b/apps/docs/public/img/guides/branching/cidr-dark.png differ
diff --git a/apps/docs/public/img/guides/branching/cidr-light.png b/apps/docs/public/img/guides/branching/cidr-light.png
new file mode 100644
index 00000000000..1f32229a028
Binary files /dev/null and b/apps/docs/public/img/guides/branching/cidr-light.png differ