Ted
PPrisma
•Created by Ted on 7/3/2024 in #help-and-questions
URGENT: I cannot remove/uninstall Accelerate from my Vercel build. Help.
I'm trying to remove Accelerate, but Vercel's not having it. I've removed use of extend, removed the package library, changed environment URLs to original Postgres urls. I'm stumped. Please help.
13 replies
PPrisma
•Created by Ted on 7/3/2024 in #help-and-questions
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:
1 replies
PPrisma
•Created by Ted on 6/29/2024 in #help-and-questions
Get P6004 and P5000 error running Vercel production query through Accelerate
I receive this error and I don't understand the cause is. The query is straightforward, performing a fetch of 25 rows with a JOIN, no filtering or sorting, that should reply fast with a small handful of columns to populate a MUI DataGridPro React component. This works via Preview and localhost. Accelerate status appears fine today, but not sure about Cloudflare. I hope someone can give me a clue or how to more quickly debug this and get me on track to resolve ASAP. I'm not sure why this is timing out.
2 replies
PPrisma
•Created by Ted on 6/18/2024 in #help-and-questions
Accelerate migration not happening Vercel Prod but does with Vercel Preview
Vercel Preview migration just built and deployed just fine as expected, but Production build does not perform the migration! What? I have DIRECT_DATABASE_URLs specified for both. Using GCP Cloud SQL Postgres. URGENT.
2 replies
PPrisma
•Created by Ted on 6/18/2024 in #help-and-questions
Prisma runtime error using direct db access in parallel with Accelerate on Vercel
I want to use two paths to Postgres: Prisma Accelerate and direct for a very limited use case (mentioned below) with my Next deployment.
I get this runtime error on Vercel, not locally:
I export const
prisma
(for Accelerate) and prismaDirect
(for direct access) as follows:
Relevant build output:
more in thread...6 replies