import { PrismaClient } from "@prisma/client";import { PrismaNeon } from "@prisma/adapter-neon";import { Pool } from "@neondatabase/serverless";declare global { var prisma: PrismaClient | undefined;}const connectionString = `${process.env.DATABASE_URL}`;const pool = new Pool({ connectionString })const adapter = new PrismaNeon(pool);export const db = globalThis.prisma || new PrismaClient({ adapter });if (process.env.NODE_ENV !== "production") globalThis.prisma = db;