From 747060af25c12924c7d62481f95a3ab371237170 Mon Sep 17 00:00:00 2001 From: ddshi <8811906+ddshi@user.noreply.gitee.com> Date: Thu, 29 Jan 2026 16:43:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=9A=84=E6=95=B0=E6=8D=AE=E5=BA=93=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA=20(P1=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E4=BF=AE=E5=A4=8D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/db.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/db.ts b/src/lib/db.ts index cf328b9..467579f 100644 --- a/src/lib/db.ts +++ b/src/lib/db.ts @@ -9,7 +9,10 @@ dotenv.config(); const __dirname = path.dirname(fileURLToPath(import.meta.url)); const dbPath = path.resolve(__dirname, '../../prisma/dev.db'); -console.log('Database path:', dbPath); +// Only log database path in development environment +if (process.env.NODE_ENV !== 'production') { + console.log('Database path:', dbPath); +} // Create LibSQL client const db = createClient({