Support Forums

Monorepo deploy with deep path


I have two sites setup in netlify using the same Github repo, I can’t make both deploy correctly with the diff setup to avoid deploy one of the sites if there are not changes on its folder for a given commit.

*** As a new user I can only update one image, so sorry about this, but I made a capture of the whole post :man_facepalming: ***

I wonder why you’re using $COMMIT_REF for this, when you could use git diff:

I use that approach based on what I read here File-based configuration | Netlify Docs

Will check that info and give a try, thanks

Finally I got it working with this on both netlify.toml

  ignore = "git diff --quiet HEAD^ HEAD ."