From 2b4cb55f65005ae85e98562f9c4988c9e981b2af Mon Sep 17 00:00:00 2001 From: Avraham Sakal Date: Sun, 14 Sep 2025 21:53:09 -0400 Subject: [PATCH] get postgres connection string from environment variable --- database/postgres.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/postgres.ts b/database/postgres.ts index 553cd17..fb8bca5 100644 --- a/database/postgres.ts +++ b/database/postgres.ts @@ -8,10 +8,10 @@ import type { MessageEntity, } from "./common.ts"; import type { CommittedMessage } from "../types"; +import { env } from "../server/env.js"; export const pool = new Pool({ - connectionString: - "postgres://neondb_owner:npg_sOVmj8vWq2zG@ep-withered-king-adiz9gpi-pooler.c-2.us-east-1.aws.neon.tech:5432/neondb?sslmode=require&channel_binding=true", + connectionString: env.POSTGRES_CONNECTION_STRING as string, // channelBinding: require ? });