-
-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prisma fixes #452
Prisma fixes #452
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
what is the build error in vercel for next-forge-app after this last commit? |
Hey @barsketis, on the second-to-last commit, these were the build statuses: ✅ app API had the warning:
it also had the error:
On the latest commit: ❌ app app has the error:
I'm thinking that last commit fixed the warning, but the Possibly related is prisma/prisma#7234 (comment) |
Heres what I did to get the build to pass vercel, im not sure if this is optimal but might help packages package.json
turbo.json modified the outputs to include the generated folder
|
The vercel build had prisma errors after loggin in
I tried adding in the binary query engine in the prisma file, but it did not work, so I reverted your removal of the helper library installed (@prisma/nextjs-monorepo-workaround-plugin), and had to make some minor changes to get it to compile on vercel. It appears to be working now with no errors
|
Does this mean that there has been a resolution in the build error for the prisma db issue, or are we needing further action? |
@DaveMitten that change simply reverts my change, I don't think it will fix the issues linked. I've asked the Prisma team to take a look. |
Also for context, this PR implements Prisma's officially documented way of working with Turborepo. Unsure how the plugin fits into this but it would be nice to have better documentation. |
Hi @barsketis 👋 , Are you using a custom output path with the helper library? |
Yes that is correct, I merged his branch in and added back the library to get rid of the binary issue during the vercel build, but I kept the generated client code. Otherwise prisma would not export the types and throw a "no page type found" during compiling the vanilla repo with vercel.
I do agree with hayden, the prisma documentation is not accurate for how to deal with turbo repos, I tried many different combinations they recommended and defaulted back to utilizing their helper library. Im not sure what this library does however, it might be redundant with haydens changes for the output file.
I havent tested this solution yet but it doesnt seem optimal.
|
Here are the changes I did to get the App repo working on vercel |
…r, added generated outputs to turbo, and added next middleware type (#453)
Seems to deploy just fine now! Nice work @barsketis |
🚀 PR was released in |
This PR hopefully fixes a number of Prisma-related issues:
PrismaClientKnownRequestError
#421