chore(db): update globalForPrisma assignment for production environment
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
# Database
|
# 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"
|
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/prompts_chat?schema=public"
|
||||||
|
|
||||||
# NextAuth
|
# NextAuth
|
||||||
|
|||||||
+1
-1
@@ -13,4 +13,4 @@ export const db =
|
|||||||
: ["error"],
|
: ["error"],
|
||||||
});
|
});
|
||||||
|
|
||||||
if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = db;
|
globalForPrisma.prisma = db;
|
||||||
|
|||||||
Reference in New Issue
Block a user