Skip Vercel preview builds for non-website changes#414
Conversation
- Add an ignoreCommand to prevent preview deployments from rebuilding empty commits
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughAdded an Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@website/vercel.json`:
- Line 6: The ignoreCommand currently uses "git diff --quiet HEAD^ HEAD -- ./"
which only checks the last commit; update the "ignoreCommand" in vercel.json to
use Vercel-provided env vars by replacing that command with a git diff that
compares ${VERCEL_GIT_PREVIOUS_SHA:-$VERCEL_GIT_COMMIT_SHA} to
${VERCEL_GIT_COMMIT_SHA} (or equivalent safe fallbacks) so the full pushed
commit range is checked and multi-commit pushes that touch website/ are
detected; ensure the updated ignoreCommand references the
VERCEL_GIT_PREVIOUS_SHA and VERCEL_GIT_COMMIT_SHA environment variables and
falls back safely for new branches.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: fe0e9d50-34f1-4036-95f0-183d7405b7c7
📒 Files selected for processing (1)
website/vercel.json
Benchmark Results386 benchmarks Interpreted: 🟢 313 improved · 🔴 29 regressed · 44 unchanged · avg +6.0% arraybuffer.js — Interp: 🟢 11, 3 unch. · avg +7.4% · Bytecode: 🟢 1, 🔴 12, 1 unch. · avg -7.8%
arrays.js — Interp: 🟢 17, 2 unch. · avg +9.3% · Bytecode: 🔴 18, 1 unch. · avg -9.3%
async-await.js — Interp: 🟢 5, 1 unch. · avg +11.6% · Bytecode: 🔴 5, 1 unch. · avg -9.5%
base64.js — Interp: 🟢 9, 1 unch. · avg +10.6% · Bytecode: 🔴 9, 1 unch. · avg -10.8%
classes.js — Interp: 🟢 26, 5 unch. · avg +6.6% · Bytecode: 🔴 13, 18 unch. · avg -4.6%
closures.js — Interp: 🟢 11 · avg +9.5% · Bytecode: 🔴 10, 1 unch. · avg -9.0%
collections.js — Interp: 🟢 10, 2 unch. · avg +8.5% · Bytecode: 🔴 12 · avg -10.1%
csv.js — Interp: 🟢 13 · avg +9.9% · Bytecode: 🔴 13 · avg -8.6%
destructuring.js — Interp: 🟢 21, 1 unch. · avg +8.4% · Bytecode: 🔴 20, 2 unch. · avg -9.2%
fibonacci.js — Interp: 🟢 8 · avg +9.7% · Bytecode: 🔴 8 · avg -11.6%
float16array.js — Interp: 🟢 20, 🔴 4, 8 unch. · avg +3.1% · Bytecode: 🟢 6, 🔴 22, 4 unch. · avg -2.6%
for-of.js — Interp: 🟢 6, 1 unch. · avg +5.8% · Bytecode: 🔴 7 · avg -8.6%
helpers/bench-module.js — Interp: 0 · Bytecode: 0
iterators.js — Interp: 🟢 36, 6 unch. · avg +5.8% · Bytecode: 🔴 26, 16 unch. · avg -3.9%
json.js — Interp: 🟢 20 · avg +10.4% · Bytecode: 🔴 20 · avg -11.0%
jsx.jsx — Interp: 🟢 20, 1 unch. · avg +7.1% · Bytecode: 🔴 20, 1 unch. · avg -9.6%
modules.js — Interp: 🟢 9 · avg +6.5% · Bytecode: 🔴 9 · avg -14.6%
numbers.js — Interp: 🟢 10, 1 unch. · avg +10.0% · Bytecode: 🔴 11 · avg -11.2%
objects.js — Interp: 🟢 6, 1 unch. · avg +4.1% · Bytecode: 🔴 7 · avg -9.2%
promises.js — Interp: 🟢 7, 🔴 1, 4 unch. · avg +3.1% · Bytecode: 🔴 12 · avg -12.1%
regexp.js — Interp: 🟢 11 · avg +9.6% · Bytecode: 🔴 8, 3 unch. · avg -5.3%
strings.js — Interp: 🟢 10, 🔴 9 · avg -10.5% · Bytecode: 🔴 19 · avg -7.9%
tsv.js — Interp: 🟢 9 · avg +11.8% · Bytecode: 🟢 1, 🔴 6, 2 unch. · avg -4.7%
typed-arrays.js — Interp: 🟢 6, 🔴 11, 5 unch. · avg +0.0% · Bytecode: 🟢 2, 🔴 15, 5 unch. · avg -3.1%
uint8array-encoding.js — Interp: 🟢 12, 🔴 4, 2 unch. · avg +5.0% · Bytecode: 🟢 5, 🔴 10, 3 unch. · avg +4.2%
Measured on ubuntu-latest x64. Benchmark ranges compare cached main-branch min/max ops/sec with the PR run; overlapping ranges are treated as unchanged noise. Percentage deltas are secondary context. |
Suite Timing
Measured on ubuntu-latest x64. |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
ignoreCommandtowebsite/vercel.jsonso Vercel only builds previews when thewebsite/directory has changesgit diff --quiet HEAD^ HEAD -- ./(Vercel's recommended approach) which exits 0 (skip) when no files changed, exits 1 (build) when they didContext
Vercel creates a preview deployment for every push to every branch by default. Since only the
website/directory is deployed to Vercel, pushes that only touch Pascal source, tests, or other files outsidewebsite/don't need a preview build.