Repository navigation
Landing page: deploy to threert.dev (Cloudflare Worker, static assets) - #22
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: Workerthreert-sitein the Cloudflare account that holds the threert.dev zone; static assets fromout/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, thenbunx wrangler@4 deploy. Needswrangler loginas a member of that account.site/README.md: the live URL and how to redeploy.Merge gate
fc90b958; the account id was passed asCLOUDFLARE_ACCOUNT_IDthen, it is inwrangler.jsoncnow):https://threert.dev/200,/media/bistro/live.webp200,/vendor/three/three.module.js200,/js/devices.js200,https://www.threert.dev/301 →https://threert.dev/.wrangler deploy --dry-run --config site/wrangler.jsonc: 288 asset files, bindingASSETS.🤖 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 existingout/sitebuild are published with custom domains on the apex andwww, with noworkers.devURL.site/worker.tsruns before the asset binding sowww.threert.devgets a 301 to the apex; all other requests are served fromASSETS.site/wrangler.jsoncwires the worker entry,../out/site, the account/zone, and both host patterns.site/tools/deploy.tschainsbun site/tools/build.tsthenbunx wrangler@4 deploy.site/README.mddocuments 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.