* feat(selfhost): a copy of Loki is a copy — own hostname, own OrangeCat, a complete env contract
- APP_DOMAIN reads NEXT_PUBLIC_APP_DOMAIN (fallback loki.orangecat.ch), so
callbacks, emails and copy carry a fork's own name; brand-sync still
holds the shell mirror to the fallback.
- orangeCatProjectUrl() in config/orangecat.ts replaces the literal
https://orangecat.ch/projects/… in three components, built on
NEXT_PUBLIC_ORANGECAT_URL.
- .env.example names every variable src/ reads — 68 were not named, so a
fork found Google sign-in, embeddings, the Telegram bot or the daemon
token only by grepping process.env — each with the file that reads it,
and scripts/test/env-example-covers-src.ts (picked up by test:unit) fails
when one is missing. A comment that mentions a variable is not a read.
- README: "Run your own copy" — docker compose up, /setup, hostname,
optional OrangeCat, agents on your own machine, the env contract; the
name and identity are not part of the licence.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TtBnGxwf5ddXTzRNyjHVP7
* fix(deploy): hand the newly declared NEXT_PUBLIC_* to the build, readers treat "" as unset
public-env-inlined on 070f951b: declaring NEXT_PUBLIC_APP_DOMAIN,
NEXT_PUBLIC_LOKI_BRIDGE_URL and the two ecosystem addresses in
.env.example made them "something an operator may set" — and none reached
the build, so a box that set one would render a different tree than the
browser (the production-only hydration failure that check exists for).
deploy.yml's build step now inlines all four from repo variables. An unset
variable arrives as "", so the readers use || rather than ??: an empty
inlined value falls back to the same default on both sides.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TtBnGxwf5ddXTzRNyjHVP7
---------
Co-authored-by: Claude <noreply@anthropic.com>