Hello everyone. First time to the sub.
I'm a beginner developer and I've been struggling to deploy my app on Vercel which uses NextJS for front end, fastAPI for backend and Prisma + Postgres for database. The deployment failed with error:
RuntimeError: The Client hasn't been generated yet, you must run 'prisma generate' before you can use the client.
According to the Prisma docs, I did include the postinstall script in the package.json file:
{ ... "scripts" { "postinstall": "prisma generate" } ...}
Has anyone worked with this specific techstack can give me some inputs as to how to approach the problem? Since Vercel is really good for NextJS so I wanted to stick with it, but if there are more simpler and free options to host the backend then I will contemplate using.
Thank you in advance.
I’ve been experimenting with building a large fastapi project for a client and recently started using prisma cli for managing my database migrations.
Prisma python has bindings to the rust based cli by prisma.io and the cli has been growing rapidly in the typescript community.
Do you think this is an easier solution to adopting sqlAlchemy and alembic for managing db and migrations with fastapi?
If you need more context someone has already produced a short tutorial on prisma python.
https://lewoudar.medium.com/alternatives-to-sqlalchemy-for-your-project-prisma-case-9df8ce037578
Note: Prisma python client is a small project supported by prisma.io but Prisma cli has been around for quite a while and loved by the typescript community.
Some of you I think heard about Prisma ORM that gained a lot of popularity (or maybe more of a hype) in Javascript/Typescript world recently. I was suprised that there is Python library that allows to interact with Prisma and became curious if somebody tried using it at work projects. Does anybody here tried using it on production or at work in general?