Skip to content

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

fix(docs): use default connection string (#47233)

Kalleby Santosf09701bda088
diff --git a/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts b/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts
index 5950f81ad1b..e74d547d3a6 100644
--- a/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts
+++ b/examples/edge-functions/supabase/functions/postgres-on-the-edge/index.ts
@@ -1,17 +1,7 @@
import { Pool } from 'jsr:@db/postgres@^0'
// Create a database pool with one connection.
-const pool = new Pool(
- {
- tls: { enabled: false },
- database: 'postgres',
- hostname: Deno.env.get('DB_HOSTNAME'),
- user: Deno.env.get('DB_USER'),
- port: 6543,
- password: Deno.env.get('DB_PASSWORD'),
- },
- 1
-)
+const pool = new Pool(Deno.env.get('SUPABASE_DB_URL')!, 1)
export default {
fetch: async (_req) => {