chore: disable query logging on the prisma client
This commit is contained in:
parent
96c2bbfd12
commit
fee2e98a90
1 changed files with 1 additions and 3 deletions
|
@ -8,8 +8,6 @@ declare global {
|
||||||
|
|
||||||
export const prisma =
|
export const prisma =
|
||||||
global.__prisma ||
|
global.__prisma ||
|
||||||
new PrismaClient({
|
new PrismaClient();
|
||||||
log: ['query'],
|
|
||||||
});
|
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== 'production') global.__prisma = prisma;
|
if (process.env.NODE_ENV !== 'production') global.__prisma = prisma;
|
||||||
|
|
Loading…
Reference in a new issue