Created
July 1, 2023 17:18
-
-
Save christopherbauer/1e194d5900574a5e2d4db8935dcdd7d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dotenv from "dotenv"; | |
import pg from "pg"; | |
dotenv.config(); | |
console.log({ url: process.env.DATABASE_URL }); | |
const pool = new pg.Pool({ connectionString: process.env.DATABASE_URL }); | |
pool.on("error", (err) => console.error(err)); | |
export default pool; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment