Skip to content

fix(ci): demo site deploys once a day, and build branches stop failing on Vercel - #338

Merged
MrYuion merged 1 commit into
developfrom
fix/vercel-daily-demo-deploy
Nov 10, 2026
Merged

MrYuion merged 1 commit into
developfrom
fix/vercel-daily-demo-deploy

Conversation

@MrYuion

@MrYuion MrYuion commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

The backoffice Vercel project builds every pushed branch, and each deployment counts toward the PlaceOS team's daily Vercel limit, which all projects share. In the last week it made 8 deployments: develop for backoffice.demo.place.tech, a preview for each feature branch push, and one for each build/dev push. The build/dev deployments always fail, because that branch holds only the compiled app. user-interfaces had the same problem (PlaceOS/user-interfaces#686), which used up the limit.

Now Vercel only deploys a backoffice-demo branch, and a daily workflow moves that branch to develop when develop changed. That is at most one deployment per day.

  • vercel.json: turn off Vercel deployments for all branches except backoffice-demo.
  • BUILD workflow: before each publish, add a one-line vercel.json that turns off deployments to the build/* branch commit. Vercel reads vercel.json from the pushed commit, and build branches do not contain the root file. Build branches get this one extra file.
  • New Demo Site workflow: runs daily at 17:00 UTC, or manually from the Actions tab.
  • README: new "Demo site" section.

After merge (Vercel settings)

  • Set the project's production branch to backoffice-demo (Settings → Environments → Production → Branch Tracking). backoffice.demo.place.tech follows the production branch.
  • Run the Demo Site workflow once to create the branch.
  • backoffice-dev.demo.place.tech points to the old refactor/layout branch. After this change it gets no new deployments. Remove it, or keep it as is.

Tests

  • Ran the Demo Site workflow step, taken from the YAML, against a local bare repo from a shallow clone: it creates the branch, skips when develop did not change, and moves the branch after a new commit.
  • Parsed both workflows, and ran the new BUILD step: it writes valid JSON. Prettier passes.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

…g on Vercel

The backoffice Vercel project built every pushed branch: develop for
backoffice.demo.place.tech, each feature branch as a preview, and each
build/* branch, which always failed. All of them count toward the PlaceOS
team's daily deployment limit, which other projects share.

- vercel.json: turn off Vercel deployments for all branches except
  backoffice-demo
- BUILD workflow: add a vercel.json that turns off deployments to each
  build/* branch commit, because Vercel reads it from the pushed commit
- Demo Site workflow: move backoffice-demo to develop once per day, only
  if develop changed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MrYuion
MrYuion merged commit 3801c14 into develop Nov 10, 2026
4 of 5 checks passed
@MrYuion
MrYuion deleted the fix/vercel-daily-demo-deploy branch November 10, 2026 12:57
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