initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import 'dotenv/config';
|
||||
import pg from 'pg';
|
||||
|
||||
const { Pool } = pg;
|
||||
|
||||
export const pool = new Pool({
|
||||
host: process.env.PG_HOST,
|
||||
port: Number(process.env.PG_PORT || 5432),
|
||||
database: process.env.PG_DATABASE,
|
||||
user: process.env.PG_USER,
|
||||
password: process.env.PG_PASSWORD,
|
||||
});
|
||||
Reference in New Issue
Block a user