mirror of
https://github.com/bitbaum/loki.git
synced 2026-12-05 01:08:50 +01:00
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>