How can I simultaneously use Accelerate with directUrl for some uses cases?
I keep getting
Error validating datasource db: the URL must start with the protocol prisma://
. I want to use my directUrl to bypass Prisma's 5MB limit in one use case. This works on localhost, but not on Vercel preview/production.
I specify a Prisma accelerate URL in DATABASE_URL, and a direct url in DIRECT_DATABASE_URL.
I'm instantiating prismaDirect
this way:
and my schema:
0 Replies