Skip to content

[codex] speed up Vercel site builds#157

Merged
jayhack merged 4 commits into
developfrom
codex/speed-up-vercel-site-build
Jun 22, 2026
Merged

[codex] speed up Vercel site builds#157
jayhack merged 4 commits into
developfrom
codex/speed-up-vercel-site-build

Conversation

@jayhack

@jayhack jayhack commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a checked-in Vercel ignoreCommand for the site/ project
  • skip Vercel builds unless site/ or docs/ changed
  • document the Vercel config in AGENTS.md and site/README.md

Why

The docs/README site was rebuilding on Vercel even for commits that cannot affect the site. The new ignore script compares the current commit with VERCEL_GIT_PREVIOUS_SHA when available, falls back to HEAD^, and exits with Vercel's expected status codes so unrelated commits skip the remote build step.

Validation

  • env VERCEL_GIT_PREVIOUS_SHA=HEAD VERCEL_GIT_COMMIT_SHA=HEAD node scripts/ignore-build.mjs exits 0
  • env VERCEL_GIT_PREVIOUS_SHA=HEAD^ VERCEL_GIT_COMMIT_SHA=HEAD node scripts/ignore-build.mjs exits 1 when docs changed
  • env VERCEL_FORCE_BUILD=1 node scripts/ignore-build.mjs exits 1
  • PATH="$HOME/.nvm/versions/node/v22.19.0/bin:$PATH" npm --prefix site run build

@jayhack jayhack requested a review from a team as a code owner June 22, 2026 16:51
@jayhack jayhack requested review from kopekC and removed request for a team June 22, 2026 16:51
@vercel

vercel Bot commented Jun 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
graph-sitter Ready Ready Preview, Comment Jun 22, 2026 5:03pm

Request Review

…cel-site-build

# Conflicts:
#	site/vercel.json
@jayhack jayhack merged commit 257154f into develop Jun 22, 2026
7 checks passed
@jayhack jayhack deleted the codex/speed-up-vercel-site-build branch June 22, 2026 17:07
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