Skip to content

Commit 655ad2f

Browse files
authored
Update supabase.mdx (#23286)
1 parent 861c60a commit 655ad2f

File tree

1 file changed

+10
-10
lines changed
  • src/content/docs/workers/databases/third-party-integrations

1 file changed

+10
-10
lines changed

src/content/docs/workers/databases/third-party-integrations/supabase.mdx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,14 @@ import { Render, PackageManagers, Tabs, TabItem } from "~/components";
99

1010
:::note
1111

12-
You can connect to Supabase using [Hyperdrive](/hyperdrive) (recommended), or using the Supabase client, `@supabase/supabase-js`. Both provide connection pooling and reduce the amount of round trips required to create a secure connection from Workers to your database.
12+
The Supabase client (`@supabase/supabase-js`) provides access to Supabase's various features, including database access. If you need access to all of the Supabase client functionality, use the Supabase client.
1313

14-
Hyperdrive can provide lower latencies because it performs the database connection setup and connection pooling across Cloudflare's network. Hyperdrive supports native database drivers, libraries, and ORMs, and is included in all [Workers plans](/hyperdrive/platform/pricing/). Learn more about Hyperdrive in [How Hyperdrive Works](/hyperdrive/configuration/how-hyperdrive-works/).
14+
If you want to connect directly to the Supabase Postgres database, connect using [Hyperdrive](/hyperdrive). Hyperdrive can provide lower latencies because it performs the database connection setup and connection pooling across Cloudflare's network. Hyperdrive supports native database drivers, libraries, and ORMs, and is included in all [Workers plans](/hyperdrive/platform/pricing/). Learn more about Hyperdrive in [How Hyperdrive Works](/hyperdrive/configuration/how-hyperdrive-works/).
1515

1616
:::
1717

1818
<Tabs>
19-
<TabItem label="Hyperdrive (recommended)">
20-
21-
When connecting to Supabase with Hyperdrive, you connect directly to the underlying Postgres database. This is [recommended by Supabase](https://supabase.com/docs/guides/database/connecting-to-postgres#choosing-a-connection-method) when accessed server-side from Workers.
22-
If you prefer to use the Supabase client, refer to the `Supabase client` tab. To connect to Supabase using [Hyperdrive](/hyperdrive), follow these steps:
23-
24-
<Render file="supabase-partial" product="hyperdrive"/>
25-
</TabItem>
26-
<TabItem label="Supabase client">
19+
<TabItem label="Supabase client">
2720

2821
### Supabase client setup
2922

@@ -91,4 +84,11 @@ To set up an integration with Supabase:
9184
To learn more about Supabase, refer to [Supabase's official documentation](https://supabase.com/docs).
9285

9386
</TabItem>
87+
<TabItem label="Hyperdrive">
88+
89+
When connecting to Supabase with Hyperdrive, you connect directly to the underlying Postgres database. This provides the lowest latency for databsae queries when accessed server-side from Workers. To connect to Supabase using [Hyperdrive](/hyperdrive), follow these steps:
90+
91+
<Render file="supabase-partial" product="hyperdrive"/>
92+
</TabItem>
93+
9494
</Tabs>

0 commit comments

Comments
 (0)