docs: netlify: disable auth for deploy preview, enable in production

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-06-18 16:54:06 +02:00
parent 30b7bc89ec
commit c53e6c77ec

View File

@ -1,7 +1,7 @@
[build]
base = "website/"
publish = "build/"
command = "yarn build:withoutAuth"
command = "yarn build"
[context.production]
# Do not build the site if there's no site-related changes since the last
@ -16,6 +16,7 @@
# 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"
command = "yarn build:withoutAuth"
[[redirects]]
from = "/github-proxy/*"