A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
chore: Enable prisma logging in dev env
MohamedBassema86156d80503
diff --git a/packages/db/index.ts b/packages/db/index.tsindex fa46ca1f..4a0f473f 100644--- a/packages/db/index.ts+++ b/packages/db/index.ts@@ -1,6 +1,11 @@import { PrismaClient } from "@prisma/client";-const prisma = new PrismaClient();+const prisma = new PrismaClient({+ log:+ process.env.NODE_ENV === "development"+ ? ["query", "error", "warn"]+ : ["error"],+});// For some weird reason accessing @prisma/client from any package is causing problems (specially in error handling).// Re export them here instead.