The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update "Connect to Postgres" example with correct env variable for Postgres DB
Andre van Tondereff85d2c803d
diff --git a/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdx b/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdxindex d99931b58e8..5fc087aa92f 100644--- a/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdx+++ b/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdx@@ -22,8 +22,8 @@ Supabase Edge Functions allow you to go beyond HTTP and can connect to your Postimport * as postgres from 'https://deno.land/x/[email protected]/mod.ts'import { serve } from 'https://deno.land/[email protected]/http/server.ts'-// Get the connection string from the environment variable "DATABASE_URL"-const databaseUrl = Deno.env.get('DATABASE_URL')!+// Get the connection string from the environment variable "SUPABASE_DB_URL"+const databaseUrl = Deno.env.get('SUPABASE_DB_URL')!// Create a database pool with three connections that are lazily establishedconst pool = new postgres.Pool(databaseUrl, 3, true)