Skip to content

Commit 3ae2256

Browse files
committed
remove global this
1 parent 7c91af6 commit 3ae2256

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/prisma.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ declare global {
88

99
const neon = new Pool({ connectionString: process.env.DATABASE_URL });
1010
const adapter = new PrismaNeon(neon);
11-
const client = globalThis.prisma || new PrismaClient({ adapter });
12-
if (process.env.NODE_ENV !== "production") globalThis.prisma = client;
13-
console.log({ client });
11+
const client = new PrismaClient({ adapter });
1412

1513
export default client;
14+
15+
// const client = globalThis.prisma || new PrismaClient({ adapter });
16+
// if (process.env.NODE_ENV !== "production") globalThis.prisma = client;
17+
// console.log({ client });
18+
19+
// export default client;

0 commit comments

Comments
 (0)