Allows to use local prisma env
parent
3382633e47
commit
04f72995c5
|
@ -0,0 +1,4 @@
|
|||
import { config } from "dotenv";
|
||||
import { resolve } from "path";
|
||||
|
||||
config({ path: resolve(__dirname, "./.env") });
|
|
@ -1,5 +1,7 @@
|
|||
import { Client, Pool } from "pg";
|
||||
|
||||
import "@calcom/prisma/env";
|
||||
|
||||
const connectionString = process.env.DATABASE_URL;
|
||||
|
||||
const pool = new Pool({
|
||||
|
|
Loading…
Reference in New Issue