diff --git a/website/netlify.toml b/website/netlify.toml index 703a4e4aa83..decad0cf254 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -17,6 +17,12 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/" command = "yarn build:withoutAuth" +[context.docs-analytics] + # Do not build the site if there's no site-related changes since the last + # deploy. + ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/" + command = "yarn build" + [[redirects]] from = "/github-proxy/*" to = "https://github.com/:splat"