Files
loki/scripts
Mao NakamotoandClaude Opus 4.8 e3ce10d21a fix(projects): share link uses canonical public URL, not internal bind
Dogfooding the shipped share feature on the box surfaced a dead link: the API
built the shared URL from req.nextUrl.origin, which behind Caddy is the internal
bind (https://0.0.0.0:4002). Every copied/opened/displayed share link was
unreachable. Build it from appUrl() (NEXTAUTH_URL) instead — the same canonical
base URL email links already use. authenticated-smoke now asserts SH03b: the
returned url is a public https link containing the token, never 0.0.0.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-08 18:05:24 +02:00
..