本文主要是介绍【前端部署——vercel】部署next.js使用了prisma的项目,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
部署流程参考
https://blog.csdn.net/qq_51116518/article/details/137042682
问题
PrismaClientInitializationError: Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma’s auto-generation isn’t triggered. To fix this, make sure to run the prisma generate
command during the build process.
解决办法
https://www.prisma.io/docs/orm/more/help-and-troubleshooting/help-articles/vercel-caching-issue
在package.json里添加提示的命令即可
这篇关于【前端部署——vercel】部署next.js使用了prisma的项目的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!