docs: netlify: disable auth for deploy preview, enable in production
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
30b7bc89ec
commit
c53e6c77ec
@ -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/*"
|
||||
|
Reference in New Issue
Block a user