mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
SITE_ORIGIN is a constant defaulting to https://bitvid.network, so the unstable deployment advertised production's canonical URL and, worse, a twitter:player pointing at production's embed -- testing a preview link silently exercised the live site. Build shareUrl, embedUrl and the fallback card from the request's own proto+host instead, so every deployment (production, unstable, preview) is self-consistent. BITVID_SITE_ORIGIN remains the fallback when the host header is absent. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>