From 4bfa7c6b693c761c75988a406c4dcf0084b11ca7 Mon Sep 17 00:00:00 2001 From: Antigravity Date: Thu, 28 May 2026 21:20:48 +0000 Subject: [PATCH] fix(prisma): provide fallback connection string when DATABASE_URL is unset during CI unit testing --- memento-note/lib/prisma.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memento-note/lib/prisma.ts b/memento-note/lib/prisma.ts index 40eee2b..8676655 100644 --- a/memento-note/lib/prisma.ts +++ b/memento-note/lib/prisma.ts @@ -4,7 +4,7 @@ const prismaClientSingleton = () => { return new PrismaClient({ datasources: { db: { - url: process.env.DATABASE_URL, + url: process.env.DATABASE_URL || 'postgresql://memento:memento@localhost:5432/memento', }, }, })