79691872

Date: 2025-07-06 15:26:01
Score: 7.5
Natty:
Report link

Did you find a solution ? , also i suffering from this problem .. can u help for solve this problem ,

import { PrismaClient } from "../generated/prisma";
import { withAccelerate } from "@prisma/extension-accelerate";

const globalForPrisma = global as unknown as {
  prisma: PrismaClient;
};

const prisma =
  globalForPrisma.prisma || new PrismaClient().$extends(withAccelerate());

if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;

export default prisma;
Reasons:
  • RegEx Blacklisted phrase (3): Did you find a solution
  • RegEx Blacklisted phrase (3): can u help
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you find a solution
  • Low reputation (1):
Posted by: Gaurav Kumar