Skip to content

Commit

Permalink
fix(client): disable prisma log query
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo committed May 3, 2023
1 parent d73014a commit 1cfa7c5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions apps/client/src/lib/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ const globalForPrisma = global as unknown as {
prisma: PrismaClient | undefined;
};

export const prisma =
globalForPrisma.prisma ??
new PrismaClient({
log: ["query"]
});
export const prisma = globalForPrisma.prisma ?? new PrismaClient();

if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;

0 comments on commit 1cfa7c5

Please sign in to comment.