mirror of
https://github.com/spliit-app/spliit.git
synced 2025-12-06 09:29:39 +01:00
Improve loading states
This commit is contained in:
@@ -3,6 +3,7 @@ import { PrismaClient } from '@prisma/client'
|
||||
let prisma: PrismaClient
|
||||
|
||||
export async function getPrisma() {
|
||||
// await delay(1000)
|
||||
if (!prisma) {
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
prisma = new PrismaClient()
|
||||
|
||||
Reference in New Issue
Block a user