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 ? });