From c53e6c77ec1d1d1584dd6fca2023e3b48c255d3e Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Fri, 18 Jun 2021 16:54:06 +0200 Subject: [PATCH] docs: netlify: disable auth for deploy preview, enable in production Signed-off-by: Andrea Luzzardi --- netlify.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index 1327a34c..80a56210 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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/*"