Skip to content

ci: let Vercel build docs.doublezero.xyz from main - #224

Merged
bgm-malbeclabs merged 1 commit into
mainfrom
ci/vercel-git-build
Oct 28, 2026
Merged

bgm-malbeclabs merged 1 commit into
mainfrom
ci/vercel-git-build

Conversation

@bgm-malbeclabs

Copy link
Copy Markdown
Collaborator

Summary

  • Vercel builds docs.doublezero.xyz from main through its GitHub app, so a merge publishes both sites without a manual deploy.
  • vercel.json runs the new scripts/vercel-build.sh. It is the docs workflow's build: the same hash-pinned packages for Python 3.12, the same one allowed warning, and the same site tar into build-vercel-output.sh.
  • Branches are skipped on Vercel. A build with no branch name, such as a vercel deploy from the CLI, still runs.
  • No Vercel token is stored in this repository. The Vercel project holds no environment variables, so a build has no secrets to read.

Deploy / rollout

  1. Merge this PR. Nothing builds on Vercel yet.
  2. Install the Vercel GitHub app on malbeclabs with access to this repository only.
  3. Connect the doublezero-docs project to malbeclabs/docs with main as the production branch, and keep fork protection on.
  4. Push or merge anything to main and check docs.doublezero.xyz.

Testing

  • A vercel deploy from this branch built on Vercel's build machines with Python 3.12, installed every pinned package, and showed only the allowed warning.
  • On that build a redirect from redirects.json answered 308 to the same target as production, and /.well-known/mcp/server-card.json, /hyperliquid/peering/ and /ja/hyperliquid/peering/ answered 200, as production does.

Vercel builds the site itself through its GitHub app. vercel.json runs
scripts/vercel-build.sh, which is the docs workflow's build: the same
hash-pinned packages for Python 3.12, the same allowed warning, and the
same site tar into build-vercel-output.sh. Branches are skipped, so only
main builds there. No Vercel token is stored in this repository.
@bgm-malbeclabs
bgm-malbeclabs merged commit fcaa68a into main Oct 28, 2026
3 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.

2 participants