Skip to content

VC2: ready to instantiate - #3

Merged
ruehowl merged 1 commit into
mainfrom
vc/2-ready
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
vc/2-ready

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

The four components a convergence plans, with their generated docs, and a README a reader can run, test, connect v0 to and deploy the v0 clone from.

  • Components:
    • web and preview: a cloudflare-workers-assets-turbo Worker each, per environment.
    • web-tests and preview-tests: run on every pull request.
  • Order: web waits for preview on a merge to main (enforced; advisory on a PR), because the host's smoke checks that the proxy origin it was built with answers as the proxy.
  • Origins: each build inlines the other app's origin: the environment's V0_PREVIEW_PROXY_URL / V0_CLONE_ORIGIN when set, else the sibling Worker's workers.dev URL.
  • V0_API_KEY is an optional Orun secret on both components. It is skipped when nobody has stored it and never reaches a bundle (env -u). When it is stored, the deploy lane pushes it as a Worker secret.
  • Smokes: the host's page, its /api/health and its proxy's /api/health; the proxy's own /api/health. None needs a v0 key.
  • README:
    • upstream's security warning, read for Cloudflare: leave V0_API_KEY unset, or put Cloudflare Access in front of both Workers;
    • the mapping to Vercel;
    • custom domains, with a different registrable domain for the proxy;
    • the trusted-preview-hosts limit.
  • As-built status: IMPLEMENTATION-STATUS.md records every departure from upstream.

Checks run locally

  • orun plan for a push to main: preview, then web, per environment.
  • orun catalog validate: 0 errors.
  • gen-component-docs.py --check: green.

Generated by Claude Code

The four components a convergence plans — web and preview (each a
cloudflare-workers-assets-turbo Worker per environment), web-tests and
preview-tests (run on every pull request) — with their generated docs, and
the README a reader can run, test, connect v0 to and deploy the v0 clone
from.

- web waits for preview on a merge to main (enforced; advisory on a pull
  request): the host's smoke checks that the proxy origin it was built with
  answers as the proxy. Each build inlines the other app's origin — the
  environment's V0_PREVIEW_PROXY_URL / V0_CLONE_ORIGIN when set, else the
  sibling Worker's workers.dev URL.
- V0_API_KEY is an optional Orun secret on both: skipped when nobody stored
  it, never in a bundle (`env -u`), pushed as a Worker secret by the deploy
  lane when it is.
- Smokes: the host's page, its /api/health and its proxy's /api/health; the
  proxy's /api/health. None needs a v0 key.
- The README carries upstream's security warning read for Cloudflare (leave
  V0_API_KEY unset, or Cloudflare Access in front of both Workers), the
  mapping to Vercel, custom domains (a different registrable domain for the
  proxy) and the trusted-preview-hosts limit; IMPLEMENTATION-STATUS records
  every departure from upstream.

`orun plan` for a push to main: preview then web, per environment;
`orun catalog validate` 0 errors; component docs --check green.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 90733ee into main Oct 29, 2026
2 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