Netlify.toml ignore doesn't work in context

I made this change to my netlify.toml file and the ignore doesn’t seem to be working anymore.

My expectation is that with commits to master if the only change is in the functions folder then it will not trigger rebuilding but this is not the case in practice.

It was working before when the ignore clause was under [build].

You’ve moved the ignore from the “build” configuration to the “environment” configuration, where we don’t expect to find it. This would do what I think you were trying to accomplish:

  ignore = "git diff --quiet HEAD^ HEAD -- ':!functions'"
  REACT_APP_ENV = "production"
1 Like

Ahh I see where I went wrong. Thanks!

1 Like