zane
zane
PPrisma
Created by zane on 6/25/2024 in #help-and-questions
Issues deploying Flask + Prisma-Client-Py backend to Vercel
Hello, I have this fullstack website project (https://github.com/mmamdouh4370/bouquet.gen) that uses a nextjs frontend with a flask backend using prisma as an orm for postgres. Whenever I try to host my project on vercel I run into issues with "prisma generate". Whether I include prisma generate, npx prisma generate, or python3 -m prisma generate in either my postinstall or build script I see in my build logs ✔ Generated Prisma Client Python (v0.13.1) to ./prisma/generated/client in 173ms, however if I try to access my api route in deployment I get a 500 and in my logs I get the error [ERROR] RuntimeError: The Client hasn't been generated yet, you must run prisma generate before you can use the client.. Any thoughts?
64 replies