Mark Pinero

Preventing Netlify rebuilds in a monorepo

When you’re working with in monorepo, Netlify will attempt to rebuild everything on every PR. This can be a problem if you’re soley working on one workspace and it builds another. By adding an ignore property to your netlify.toml, you can prevent this from wasting your build minutes.

[build]
	ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF WORKSPACE_NAME"

Additional documentation from Netlify.