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]
|
[build]
|
||||||
base = "website/"
|
base = "website/"
|
||||||
publish = "build/"
|
publish = "build/"
|
||||||
command = "yarn build:withoutAuth"
|
command = "yarn build"
|
||||||
|
|
||||||
[context.production]
|
[context.production]
|
||||||
# Do not build the site if there's no site-related changes since the last
|
# 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
|
# Do not build the site if there's no site-related changes since the last
|
||||||
# deploy.
|
# deploy.
|
||||||
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/ ../netlify.toml"
|
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../docs/ ../netlify.toml"
|
||||||
|
command = "yarn build:withoutAuth"
|
||||||
|
|
||||||
[[redirects]]
|
[[redirects]]
|
||||||
from = "/github-proxy/*"
|
from = "/github-proxy/*"
|
||||||
|
Reference in New Issue
Block a user