Initial commit

This commit is contained in:
2025-07-31 21:31:11 +02:00
commit 07c434dba8
21 changed files with 3075 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { PrismaClient } from '@prisma/client';
const prismaClientSingleton = () => {
return new PrismaClient();
};
declare const globalThis: {
prismaGlobal: ReturnType<typeof prismaClientSingleton>;
} & typeof global;
const prisma = globalThis.prismaGlobal ?? prismaClientSingleton();
export default prisma;
if (process.env.NODE_ENV !== 'production') globalThis.prismaGlobal = prisma;