Skip to content

feat: add Vercel ignoreCommand to skip frontend builds on unrelated c… - #1145

Merged
ogazboiz merged 2 commits into
LabsCrypt:mainfrom
JemimahEkong:feat/vercel-ignore-command
Aug 7, 2026
Merged

feat: add Vercel ignoreCommand to skip frontend builds on unrelated c…#1145
ogazboiz merged 2 commits into
LabsCrypt:mainfrom
JemimahEkong:feat/vercel-ignore-command

Conversation

@JemimahEkong

Copy link
Copy Markdown
Contributor

Summary

Adds ignoreCommand to vercel.json to prevent unnecessary Vercel frontend builds when changes only affect backend or contracts.

Closes #1080

Changes

  • Added:
"ignoreCommand": "git diff --quiet HEAD^ HEAD -- frontend/"

Behavior

  • Skips Vercel builds when no files inside frontend/ are changed.
  • Continues normal builds when frontend files are modified.

Verification

  • Confirmed repo is a monorepo with separate frontend, backend, and contracts workspaces.
  • No existing ignoreCommand was configured.
  • No changes made to build/install commands.

@ogazboiz ogazboiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right idea and the git diff --quiet exit-code semantics are correct. one blocker: the filter only watches frontend/, so changes to the root package.json, package-lock.json (the workspace lockfile that installs frontend deps) or vercel.json itself would skip the build and could ship a stale deploy. broaden it to:

git diff --quiet HEAD^ HEAD -- frontend/ package.json package-lock.json vercel.json

if you want to keep contributing, join us on Telegram: https://t.me/+DOylgFv1jyJlNzM0

@JemimahEkong

Copy link
Copy Markdown
Contributor Author

Changes applied.

@ogazboiz
ogazboiz merged commit 968a7c3 into LabsCrypt:main Aug 7, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Infra] vercel.json has no ignoreCommand, so every push triggers a full frontend build even for backend/contracts-only changes

2 participants