-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetlify.toml
More file actions
13 lines (13 loc) · 835 Bytes
/
Copy pathnetlify.toml
File metadata and controls
13 lines (13 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
[build]
# COMMIT_REF is a built-in Netlify build variable (full commit SHA).
# bench.html/bench.js are gitignored inside app/ (dev-only, kept off GitHub
# Pages) but tracked under netlify/bench/ so Netlify previews can ship them.
command = "bash fetch-firmware.sh && cp netlify/bench/bench.html netlify/bench/bench.js app/ && bash bust-cache.sh app \"${COMMIT_REF:0:7}\""
publish = "app"
# Only build test/preview branches — main ships via GitHub Pages instead.
# Checked against $BRANCH directly (not a [context.production] ignore
# block) because this site's Production-branch dashboard setting doesn't
# reliably match "main", which previously caused every push to netlify-
# preview to be misclassified as production and skipped before the build
# command ever ran.
ignore = "test \"$BRANCH\" = \"main\""