The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: improve database connection IPv4 warning (#23284)
Wen Bo Xie3f0a1bc4a5c8
diff --git a/apps/studio/components/interfaces/Settings/Database/IPv4DeprecationNotice.tsx b/apps/studio/components/interfaces/Settings/Database/IPv4DeprecationNotice.tsxindex d0eb82e14b4..dd78096f089 100644--- a/apps/studio/components/interfaces/Settings/Database/IPv4DeprecationNotice.tsx+++ b/apps/studio/components/interfaces/Settings/Database/IPv4DeprecationNotice.tsx@@ -12,13 +12,17 @@ export const IPv4DeprecationNotice = () => {<Alert_Shadcn_ variant="warning"><IconAlertTriangle strokeWidth={2} /><AlertTitle_Shadcn_>- Direct database access via IPv4 and pgBouncer will be removed from January 26th 2024+ Direct database access is only available via IPv6-compatible networks or if your project has+ the IPv4 add on.</AlertTitle_Shadcn_><AlertDescription_Shadcn_ className="space-y-3"><p>We strongly recommend using <span className="text-foreground">connection pooling</span> to- connect to your database. You'll only need to change the connection string that you're- using in your application to the pooler's connection string.+ connect to your database because it's compatible with both IPv4 and IPv6 networks.+ </p>+ <p>+ You'll only need to change the connection credentials that you're using in your+ application to the pooler's connection credentials.</p><Button asChild type="default" icon={<IconExternalLink strokeWidth={1.5} />}><adiff --git a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsxindex 3e3451582b7..a7e4f9680af 100644--- a/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx+++ b/apps/studio/components/interfaces/Settings/Database/UsePoolerCheckbox.tsx@@ -74,7 +74,7 @@ export const UsePoolerCheckbox = ({<div className="flex items-center gap-x-4"><div className="flex items-center gap-x-2"><label htmlFor={`use-pooler-${id}`} className="text-sm cursor-pointer">- Use connection pooling+ Display connection pooler</label>{checked && (<>