docs: georestrictions compliance

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-07-14 12:15:34 +02:00
parent fd942d201a
commit 7e960f286d

View File

@ -17,6 +17,14 @@
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/" ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/"
command = "yarn build:withoutAuth" 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]] [[redirects]]
from = "/github-proxy/*" from = "/github-proxy/*"
to = "https://github.com/:splat" to = "https://github.com/:splat"