2 years ago
Hey there.
I am deploying two apps from a monorepo and don't want to rebuild both when only one is updated. I've had this issue for a while and played around with every type of syntax for the watch paths and none seem to work, unfortunately.
My project setup:
/apps
- /web
- /api
/packages
- /dbI want to build both if any file in any packages folder was changes, but only deploy the single app if any file in either one was changed.
Here's my current watch paths setup, which again, doesn't work. Both apps are still built, even if /apps/api only had changes. I've tried so many variations so now I'm here asking if I'm doing something wrong, or if there's a bug here.
/apps/api project
/apps/api/**
/packages/**
!/apps/web/**/apps/web project
/apps/web/**
/packages/**
!/apps/api/**Project ID: 9695f536-38e5-40aa-b2fa-cfd37924e77d
8 Replies
2 years ago
do you have the new builder enabled? watch paths are ignored with that enabled last i checked
2 years ago
I do, yeah. That may be it. Will give it a go
2 years ago
Works! Thank you 🙂 No clue why I had that enabled in the first place

2 years ago
maybe you needed to use the private network during build or just wanted to try out a fancy new feature haha
2 years ago
either way, we already had a ticket open for this and i have added this thread to that ticket so i will update you when its fixed
2 years ago
yeah, i probably just enabled anything fancy labeled V2, New, Updated 😂
2 years ago
Thanks a bunch!
2 years ago
no problem!