admin tabbed pages

This commit is contained in:
2025-08-29 08:24:00 +01:00
parent 60a9081ead
commit 75bab2af0b
12 changed files with 2723 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
// lib/prisma.js
import { PrismaClient } from "@prisma/client";
const globalForPrisma = globalThis;
export const prisma =
globalForPrisma.prisma ||
new PrismaClient({
log: ["query", "error", "warn"],
});
if (process.env.NODE_ENV !== "production") {
globalForPrisma.prisma = prisma;
}