P
Prisma8mo ago
glomyst

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
Prisma AI Help
Prisma AI Help8mo ago
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurul8mo ago
Are you trying to use Driver Adapters and Accelerate at the same time? Does your DATABASE_URL start with prisma://?
glomyst
glomystOP8mo ago
Yes I was using both. I cant be used together?
Nurul
Nurul7mo ago
Sorry for the delay in getting back. What is your use case? Ideally you only need to use one

Did you find this page helpful?