Buckets:
| import { PrismaClient } from "./generated/prisma-client"; | |
| import { withAccelerate } from "@prisma/extension-accelerate"; | |
| const prisma = new PrismaClient().$extends(withAccelerate()); | |
| const globalForPrisma = global as unknown as { prisma: typeof prisma }; | |
| if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma; | |
| export default prisma; | |
Xet Storage Details
- Size:
- 358 Bytes
- Xet hash:
- 5408dac5cf26a1fea7d3a33f2504be6d20c9c62ce9ab0cfc53d5fa9c0369e8a3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.