P
Prisma2mo 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 Help2mo 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
Nurul2mo ago
Are you trying to use Driver Adapters and Accelerate at the same time? Does your DATABASE_URL start with prisma://?
glomyst
glomystOP2mo ago
Yes I was using both. I cant be used together?
Nurul
Nurul2w 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?