Best CI/CD Setup for Multiple React Vite Apps in Turborepo?
Asked by
CleverPineapple42
I'm managing a Turborepo that includes three separate Vite websites located at apps/web1, apps/web2, and apps/web3. I'm trying to figure out the best CI/CD setup for this. Should I go with a single pipeline that only triggers deployments for updated apps, or would it be wiser to create individual pipelines for each app? For instance, if I make changes to web1, it should only deploy web1. What's considered the cleanest and most standard approach in the industry today?
Answers
You're on the right track! A lot of CI tools let you set up jobs that only run when specific files change. I recommend creating separate jobs for each app and configure them to trigger only when updates occur. This way, you wonโt be deploying everything every time, just what's necessary.
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousCoder77: Thanks for the insight! I understand the concept but I'm not sure how to implement it. Do you have any resources or docs that could help? Appreciate it!