fix(prisma): provide fallback connection string when DATABASE_URL is unset during CI unit testing
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 44s
CI / Deploy production (on server) (push) Has been skipped

This commit is contained in:
Antigravity
2026-05-28 21:20:48 +00:00
parent e3369e03b5
commit 4bfa7c6b69

View File

@@ -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',
},
},
})