Allows to use local prisma env

fixes/env-size-limit
zomars 2022-04-28 12:43:22 -06:00
parent 3382633e47
commit 04f72995c5
2 changed files with 6 additions and 0 deletions

4
packages/prisma/env.ts Normal file
View File

@ -0,0 +1,4 @@
import { config } from "dotenv";
import { resolve } from "path";
config({ path: resolve(__dirname, "./.env") });

View File

@ -1,5 +1,7 @@
import { Client, Pool } from "pg";
import "@calcom/prisma/env";
const connectionString = process.env.DATABASE_URL;
const pool = new Pool({