Skip to content

fix(build): stop unnecessary Vercel builds across the monorepo - #555

Merged
bashybaranaba merged 2 commits into
stagingfrom
fix/vercel-build-costs
Oct 22, 2026
Merged

bashybaranaba merged 2 commits into
stagingfrom
fix/vercel-build-costs

Conversation

@bashybaranaba

@bashybaranaba bashybaranaba commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

A gateway-only change currently rebuilds the web app, CommonLab, and docs on feature branches, staging, main, and staging sync. These three projects account for $53.49 of the last invoice’s $54.91 build CPU charge.

Only automatically deploy staging and main. Compare each app with its last successful deployment on that branch and include its transitive workspace dependencies. Skip backend/infrastructure-only changes and staging syncs whose trees are unchanged; build safely when history is missing. Keep shared lockfile/toolchain changes as build inputs.

Add a dry-run-first Vercel settings reconciler to enable native unaffected-project skipping, use Basic build machines, and queue builds instead of paid on-demand concurrency, preserving every function/runtime setting. These controls affect future builds only. Manual deployments remain available.

Validation: 20 tests passed, including multi-commit releases, transitive dependencies, deleted/renamed files, missing history, fetching the exact prior commit in a shallow clone, and Vercel exit codes. Configuration keys checked against Vercel’s published schema. Replaying the latest 100 deployments per app estimates 82% less aggregate build time (historical estimate, not a guaranteed invoice reduction).

Staging verification: confirm the affected apps build on Basic, staging routes respond, and same-tree/unrelated changes skip. Promotion will use staging → main with a merge commit.

@bashybaranaba
bashybaranaba merged commit e6b7133 into staging Oct 22, 2026
7 checks passed
@bashybaranaba bashybaranaba mentioned this pull request Oct 22, 2026
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.

1 participant