2024-11-15 19:44:26 +03:00

13 lines
282 B
TypeScript

import postgres from "postgres";
const envs = process.env;
const dbConfigs = {
host: envs.POSTGRES_HOST,
port: Number(envs.POSTGRES_PORT),
username: envs.POSTGRES_USER,
password: envs.POSTGRES_PASS,
database: envs.POSTGRES_DB,
};
export const sql = postgres(dbConfigs);