docs: 🐛 proxify api with netlify

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering
2021-06-14 17:40:33 +02:00
parent 128047b3aa
commit bf03e5616e
2 changed files with 18 additions and 3 deletions

View File

@@ -16,3 +16,18 @@
# 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/ ../netlify.toml"
[[redirects]]
from = "/github-proxy/*"
to = "https://github.com/:splat"
status = 200
[[redirects]]
from = "/github-api-proxy/*"
to = "https://api.github.com/:splat"
status = 200
[[redirects]]
from = "/docs-access/*"
to = "https://j20f3pfq11.execute-api.us-east-1.amazonaws.com/Prod/u/:splat"
status = 200