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
+2 -1
View File
@@ -7,6 +7,7 @@
// Members can also release one of their own free referrals into the tank
// (pay it forward). The contract binds sponsor at first purchase, so every
// hand-off here is a site record until then.
const { SITE_URL } = require('./host');
const fs = require('fs');
const path = require('path');
const db = require('./db');
@@ -19,7 +20,7 @@ const MIN_OWN_BUY_CENTS = 2000; // adopter must have bought a $20+ package them
const WARN_DAYS = 10; // dormant lead: sponsor warned after this many days without contact
const RESCUE_DAYS = 14; // ...and the lead moves to the tank after this many (warning at least 4 days old)
let DATA_DIR = '.', accounts, chain, messages, mailer, siteUrl = 'https://linkspin-test.saasy.top';
let DATA_DIR = '.', accounts, chain, messages, mailer, siteUrl = SITE_URL;
const J = {
db: { v: 1, nextId: 1, adoptions: [], marks: {} },