Publish the public site
Utming’s public landing page and documentation use a Cloudflare Worker backed by versioned static files in Workers KV. Your personal assistant and its data run in the desktop app or on your self-hosted server.
Build and review
Section titled “Build and review”Install the docs dependencies, then build from the repository root:
pnpm --dir docs install --frozen-lockfilepnpm site:buildThe build validates internal links and produces:
| Output | Purpose |
|---|---|
.local/site |
The assembled public site, with the landing page at / and documentation under /docs/ |
.local/site-pack/manifest.json |
The release identifier, asset count and upload-batch count |
.local/site-pack/<number>.json |
Compressed, base64-encoded static assets ready for KV bulk upload |
Review the landing page and documentation at desktop and mobile widths. Check links, search, icons and missing-page behavior before publication.
These outputs contain public site content. Never put assistant data, environment files, tokens or credentials in them.
Publish an authorized release
Section titled “Publish an authorized release”The Docs workflow builds and uploads the utming-site artifact. Deployment is manual and requires explicit owner authorization.
-
Use the authorized Cloudflare connection for the account that owns the domain.
-
Upload the generated batches to the site’s KV namespace. Asset keys include the generated release identifier.
-
Publish
deployment/cloudflare/site.mjswith these bindings:Binding Value SITEThe KV namespace containing the public assets RELEASE_IDThe identifier from .local/site-pack/manifest.jsonPUBLIC_ORIGINhttps://utming.com -
After the assets are available, connect the Worker to the authorized custom domain or route.
-
Verify HTTPS, the landing page,
/docs/, search assets, a missing page and the response headers.
The deployment uses the connected Cloudflare API. Keep account credentials and CLI tokens outside Git, build output and client configuration. Worker observability is disabled, and the site includes no analytics beacon, advertising pixel or marketing signup form.
Updates and rollback
Section titled “Updates and rollback”Each build gives the asset set a content-based release identifier. Upload a new set before selecting its identifier in the Worker. Retain the previous version’s assets while its cached pages can still be in use.
To roll back, select the previous tested Worker version and its matching asset release. Changing RELEASE_ID does not restore assistant data because the public site stores only static public files.
The Worker redirects to its canonical HTTPS origin, serves GET and HEAD requests, and returns a missing-page response for unknown paths. Its security headers live in deployment/cloudflare/site.mjs; keep the matching docs/public/_headers policy current.