Skip to content

Commit

Permalink
infra(netlify): enable deploy previews (#2715)
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT authored Mar 15, 2024
1 parent 8c80877 commit 2a50c76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down

0 comments on commit 2a50c76

Please sign in to comment.