fix(prisma): provide fallback connection string when DATABASE_URL is unset during CI unit testing
This commit is contained in:
@@ -4,7 +4,7 @@ const prismaClientSingleton = () => {
|
|||||||
return new PrismaClient({
|
return new PrismaClient({
|
||||||
datasources: {
|
datasources: {
|
||||||
db: {
|
db: {
|
||||||
url: process.env.DATABASE_URL,
|
url: process.env.DATABASE_URL || 'postgresql://memento:memento@localhost:5432/memento',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user