Deploy turborepo that use prisma for two DB
Unanswered
Labrador Retriever posted this in #help-forum
Labrador RetrieverOP
Hey, I have a project with turborepo that use prisma, I have two DB production and development, I want to do the migrations and deploy for those DB, what i need?
2 Replies
American
In your package.json add in your scripts the script “postinstall”: “prisma generate && prisma migration deploy” . This will generate the types for ts, for migrations in produccion only used”pnpm dlx prisma migration deploy” and in development enviroment only used “pnpm dlx prisma migration dev”.
Labrador RetrieverOP
Hey sup Ivan, Do you have an example or a blog to guide me?