get postgres connection string from environment variable

master
Avraham Sakal 4 weeks ago
parent 641d8ad039
commit 2b4cb55f65

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

Loading…
Cancel
Save