Skip to content

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

feat: add admonition about ipv6 (#20639)

Charis01c8c9e16537
diff --git a/apps/docs/components/DateFormat.tsx b/apps/docs/components/DateFormat.tsx
new file mode 100644
index 00000000000..ed72ced0f0d
--- /dev/null
+++ b/apps/docs/components/DateFormat.tsx
@@ -0,0 +1,14 @@
+export function DateFormat({
+ date,
+ options,
+}: {
+ date: string
+ options?: Intl.DateTimeFormatOptions
+}) {
+ const dateObject = new Date(date)
+ return (
+ <time dateTime={dateObject.toISOString()} suppressHydrationWarning>
+ {dateObject.toLocaleDateString(undefined, options)}
+ </time>
+ )
+}
diff --git a/apps/docs/pages/guides/database/connecting-to-postgres.mdx b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
index 476aa2dd8e4..e5ea17fb32c 100644
--- a/apps/docs/pages/guides/database/connecting-to-postgres.mdx
+++ b/apps/docs/pages/guides/database/connecting-to-postgres.mdx
@@ -1,4 +1,5 @@
import Layout from '~/layouts/DefaultGuideLayout'
+import { DateFormat } from '~/components/DateFormat'
import StepHikeCompact from '~/components/StepHikeCompact'
export const meta = {
@@ -14,6 +15,12 @@ Supabase provides several options for programmatically connecting to your Postgr
1. Direct connections using the built-in Postgres connection system
1. Connection pooling for scalable connections
+<Admonition type="caution">
+
+Starting on <DateFormat date="2024-01-26" options={{ dateStyle: "long", timeZone: "UTC" }} />, direct database connections will start resolving to an IPv6 address. If you connect to your database using the REST and GraphQL endpoints, this doesn't affect you. If you use the database connection string, see the GitHub discussion on [how to prepare for IPv6](https://github.com/orgs/supabase/discussions/17817).
+
+</Admonition>
+
## Data APIs
Supabase provides auto-updating Data APIs. These are the easiest way to get started if you are managing data (fetching, inserting, updating). We provide several types of API to suit your preferences: