Colin Nick
Colin Nick
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
This however still doesn't solve for the core of the issue which would be using accelerate with a local db
11 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
Okay, I was able to get it to work since it was authjs that was forcing my database call. I followed https://authjs.dev/guides/edge-compatibility and now I can use my auth client in my middleware.
11 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
I can get it to work with if I use "prisma/client" Prisma Client instead though but then I receive issues with my next middleware.ts file requiring prisma to be an edge call
11 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
This is when I use the "prisma/client/edge" Prisma client with a local database & using npx prisma generate (instead of using --no-engine)
11 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
"PrismaClientValidationError: Invalid client engine type, please use library or binary"
11 replies
PPrisma
Created by gave_one on 5/28/2024 in #help-and-questions
prisma accelerate can I connect to my database?
@Nurul (Prisma) this article https://www.prisma.io/docs/accelerate/local-development#:~:text=The%20following%20steps%20outline%20how%20to%20use%20Prisma,DATABASE_URL%3D%22postgres%3A%2F%2Fusername%3Apassword%40127.0.0.1%3A5432%2Flocaldb%22%20Generate%20a%20Prisma%20Client%3A%20npx%20prisma%20generate says it works with a local database. However I am running into errors when following along with this documentation. Is it safe to say this documentation is out of date and we can assume it won't work with a local database?
11 replies