get postgres connection string from environment variable
This commit is contained in:
@@ -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 ?
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user