I am using Prisma as ORM in my nextjs app. I am initiating the Prisma client in a lib file and importing the same where ever i need the instance. But still am getting the following error.
Error querying the database: db error: FATAL: too many connections for role "qcjoaamjgbnxjx"
prisma-client:
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient();
export default prisma;