diff options
| author | ST-DDT <[email protected]> | 2024-03-15 17:27:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-15 16:27:00 +0000 |
| commit | 2a50c76857214a5471933a919e1e102642052bda (patch) | |
| tree | 25d1b4602d36118590b6a41b7c112f9646078501 | |
| parent | 8c80877f1691886e32c2b1eb799586c0c1b02b8b (diff) | |
| download | faker-2a50c76857214a5471933a919e1e102642052bda.tar.xz faker-2a50c76857214a5471933a919e1e102642052bda.zip | |
infra(netlify): enable deploy previews (#2715)
| -rw-r--r-- | netlify.toml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/netlify.toml b/netlify.toml index 31eb56a4..50b71cd3 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,6 +5,15 @@ [build] publish = "docs/.vitepress/dist" command = "pnpm docs:build:ci" + ignore = ''' + if [ "$CONTEXT" != "deploy-preview" ]; then + # Always build when not a PR preview + exit 1; + else + # Otherwise check if something doc related changed. + git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF -- . \':!src/locale/\' \':!src/locales/\' \':!test/\' \':!package.json\' \':!pnpm-lock.yaml\' \':!.github/\' + fi + ''' # Alias for the main page [[redirects]] |
