Skip to content

feat(site): docs site hosted at anoma.ly/team/rune - #1

Merged
thdxr merged 4 commits into
devfrom
site
Oct 22, 2026
Merged

thdxr merged 4 commits into
devfrom
site

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

What it does. Adds Rune's docs site (site/: overview, principles, architecture, roadmap) and hosts it at https://anoma.ly/team/rune, with https://dev.anoma.ly/team/rune for trying changes. It works the same way as Abattoir, behind the existing Cloudflare Access app on /team.

How it works.

  1. Everything is served under /team/rune (site/src/base.ts). Vite's base, links and the client router all use it.
  2. site/worker.ts redirects other hosts to the canonical one, strips the base path and serves the prerendered files. workers.dev and preview URLs are off, so nothing bypasses Access.
  3. site/cloudflare.config.ts defines Workers rune-site (anoma.ly) and rune-site-dev (dev.anoma.ly), picked by --mode.
  4. .github/workflows/site.yml deploys on pushes that touch site/: main goes to production, site-dev goes to dev. Rune has a single main branch, so a dev/production pair just for the site would be awkward.

Risk. Site and CI only, no Rust code changes. The first deploy fails until the repo has CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets. Not tested yet: a real deploy and the Access gate.

Proof.

  • bun run build and bun run build --mode dev produce the right Worker name, routes and host.
  • I ran the built Worker locally in Miniflare: /team/rune/ and every page return 200 (both /principles and /principles/), as do the shots, fonts and hashed assets (cached as immutable). /team/rune redirects to /team/rune/, http and other hosts redirect to https://anoma.ly, and /team/runes returns 404.

@thdxr

thdxr commented Oct 22, 2026

Copy link
Copy Markdown
Member

Moved Rune onto the dev/production branch model (Abattoir Repos guide):

Merging this deploys dev.anoma.ly/team/rune. To release, run git push origin dev:production. Not merging: that's Kit's call.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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