tasko/lib/db.ts
2024-08-20 14:24:59 -04:00

11 lines
331 B
TypeScript

import { PrismaClient } from '@prisma/client/edge';
import { withAccelerate } from '@prisma/extension-accelerate';
import { withOptimize } from '@prisma/extension-optimize';
declare global {
var prisma: PrismaClient | undefined;
}
export const db = new PrismaClient()
.$extends(withAccelerate())
.$extends(withOptimize());