Skip to content

Landing page: deploy to threert.dev (Cloudflare Worker, static assets) - #22

Merged
doodlewind merged 1 commit into
mainfrom
site-deploy
Nov 11, 2026
Merged

doodlewind merged 1 commit into
mainfrom
site-deploy

Conversation

@doodlewind

@doodlewind doodlewind commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Deploy config for the landing page merged in #14: it is live at https://threert.dev (www.threert.dev 301 → apex).

Tier: T (site deploy config only; renderer/, packages/, tools/, tests/ untouched).

  • site/wrangler.jsonc: Worker threert-site in the Cloudflare account that holds the threert.dev zone; static assets from out/site; custom domains threert.dev and www.threert.dev; no workers.dev URL.
  • site/worker.ts: www → apex 301; every other request goes to the assets.
  • site/tools/deploy.ts: bun site/tools/build.ts, then bunx wrangler@4 deploy. Needs wrangler login as a member of that account.
  • site/README.md: the live URL and how to redeploy.

Merge gate

  • Deployed with these files (version fc90b958; the account id was passed as CLOUDFLARE_ACCOUNT_ID then, it is in wrangler.jsonc now): https://threert.dev/ 200, /media/bistro/live.webp 200, /vendor/three/three.module.js 200, /js/devices.js 200, https://www.threert.dev/ 301 → https://threert.dev/.
  • wrangler deploy --dry-run --config site/wrangler.jsonc: 288 asset files, binding ASSETS.
  • CI: see the checks.

🤖 Generated with Claude Code


Note

Low Risk
Site-only deploy wiring (static assets + www redirect); no changes to renderer, packages, or application security logic.

Overview
Adds production hosting on https://threert.dev via a Cloudflare Worker named threert-site: static files from the existing out/site build are published with custom domains on the apex and www, with no workers.dev URL.

site/worker.ts runs before the asset binding so www.threert.dev gets a 301 to the apex; all other requests are served from ASSETS. site/wrangler.jsonc wires the worker entry, ../out/site, the account/zone, and both host patterns. site/tools/deploy.ts chains bun site/tools/build.ts then bunx wrangler@4 deploy. site/README.md documents the live URL, wrangler login, and the new files in the layout table.

Reviewed by Cursor Bugbot for commit 69a0a8e. Bugbot is set up for automated code reviews on this repo. Configure here.

…sets)

The config that serves https://threert.dev today.

- site/wrangler.jsonc: Worker `threert-site` in the account that holds the threert.dev zone; static assets from
  out/site (built by site/tools/build.ts); custom domains threert.dev and www.threert.dev; no workers.dev URL.
- site/worker.ts: www.threert.dev answers 301 to the apex; everything else goes to the assets.
- site/tools/deploy.ts: build, then `bunx wrangler@4 deploy`. Needs `wrangler login` as a member of that account.
- site/README.md: the live URL and how to deploy.

Deployed with exactly these files (version fc90b958): https://threert.dev/ 200, assets 200, www 301 -> apex.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@doodlewind
doodlewind merged commit 54b9b48 into main Nov 11, 2026
9 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