From eff85d2c803dfb9896bf66ce5ff9ac4d5cdf6bcc Mon Sep 17 00:00:00 2001 From: Andre van Tonder Date: Sat, 18 Mar 2023 12:47:13 +1000 Subject: [PATCH] Update "Connect to Postgres" example with correct env variable for Postgres DB See https://supabase.com/docs/guides/functions/secrets --- .../pages/guides/functions/examples/connect-to-postgres.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdx b/apps/docs/pages/guides/functions/examples/connect-to-postgres.mdx index 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 Post import * as postgres from 'https://deno.land/x/postgres@v0.14.2/mod.ts' import { serve } from 'https://deno.land/std@0.177.0/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 established const pool = new postgres.Pool(databaseUrl, 3, true)