diff --git a/website/netlify.toml b/website/netlify.toml index 6fccec8d..04f6ca49 100644 --- a/website/netlify.toml +++ b/website/netlify.toml @@ -17,6 +17,14 @@ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/" command = "yarn build:withoutAuth" +[[redirects]] + # Embargoes compliance. DO NOT REMOVE + conditions = {Country = ["CU", "IR", "KP", "SY", "UA"]} + from = "/*" + to = "/restricted" + status = 302 + force = true + [[redirects]] from = "/github-proxy/*" to = "https://github.com/:splat"