This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/netlify.toml

19 lines
691 B
TOML
Raw Normal View History

[build]
base = "website/"
publish = "build/"
command = "yarn build"
[context.production]
# Do not build the site if there's no site-related changes since the last
# commit.
# This assumes PRs to `main` only contain merge commits, so it's safe to
# compare the current commit to the previous.
# We can't use `$CACHED_COMMIT_REF` because that points to the PR preview
# that was built before merging.
ignore = "git diff --quiet HEAD^ HEAD -- . ../docs/ ../netlify.toml"
[context.deploy-preview]
# 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"