chore(db): update globalForPrisma assignment for production environment

This commit is contained in:
Fatih Kadir Akın
2025-12-12 04:24:35 +03:00
parent e73ebc3344
commit 0b6c01291c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1,4 +1,6 @@
# Database
# Add connection_limit and pool_timeout for serverless/production environments:
# Example: ?schema=public&connection_limit=5&pool_timeout=10
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/prompts_chat?schema=public"
# NextAuth
+1 -1
View File
@@ -13,4 +13,4 @@ export const db =
: ["error"],
});
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = db;
globalForPrisma.prisma = db;