P
Prisma2mo ago
VicenMC

Using the same schema on different projects

Hello! I have different projects that use the same prisma.schema. Every time i change something on my schema i have to update the file on all of the other projects. I wanted to ask if there's a way to sync them so all of my projects can point to a single schema and every time i wanna make a change i only have to worry for a single file. I've read that creating an npm package and share it to all of the projects could be one solution. Just wanted to ask out of curiosity if someone knew any other option or possible solution for this situation to evaluate which one would be better for me to apply. Thanks for your help!
2 Replies
Nurul
Nurul2mo ago
The best one in my opinion would be to create an npm package as you mentioned so that you have a single source of truth.
VicenMC
VicenMC2mo ago
Understood, I'll do some research to apply this solution Thanks for the recommendation!
Want results from more Discord servers?
Add your server