Site host from one module: host.js exports SITE_HOST/SITE_URL and every module, email, Telegram post, QR, ad click URL and OG tag reads it (no more hard-coded test hostname); public pages carry {{SITE_URL}} filled at serve time; frame check carries the curtain pass for our own hosts so a test ad can point at a spin link; stale IAP sitemap removed

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-10-07 08:52:04 -05:00
parent 6da444c790
commit ad744d8c0f
29 changed files with 135 additions and 111 deletions
+7
View File
@@ -0,0 +1,7 @@
// The one place the site knows its own address. SITE_HOST comes from the environment (Coolify sets it per
// deployment: linkspin-test.saasy.top on the test app, linkspin.app in production). Every module that writes a
// link into an email, a Telegram post, a QR code, an ad click URL or an OG tag reads it from here, so a fork or a
// domain move is an env change, never a search-and-replace (2026-10-07: the first brand fork left ~90 literals).
const SITE_HOST = String(process.env.SITE_HOST || 'linkspin-test.saasy.top').trim().toLowerCase();
const SITE_URL = 'https://' + SITE_HOST;
module.exports = { SITE_HOST, SITE_URL };