PrismaClientValidationError: Prisma Client was configured to use both the `adapter` and Accelerate,
I am getting this error in my Next.js turbo repo app.
I am using 6.7.0
// Here is my code
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL });
export const prisma = new PrismaClient({
adapter,
log: ["query", "error", "warn"],
});
4 Replies
You decided to hold for human wisdom. We'll chime in soon! Meanwhile,
#ask-ai
is there if you need a quick second opinion.Are you trying to use Driver Adapters and Accelerate at the same time?
Does your DATABASE_URL start with prisma://?
Yes I was using both. I cant be used together?
Sorry for the delay in getting back. What is your use case?
Ideally you only need to use one