[dotenv@17.2.3] injecting env (112) from .env -- tip: ⚙️  override existing env vars with { override: true }
[dotenv@17.2.3] injecting env (0) from .env -- tip: ⚙️  load multiple .env files with { path: ['.env.local', '.env'] }
[protected-image] IMAGE_ROOTS = [ 'C:\\Bordales Projects\\giftwrap - Copy\\protected\\images' ]
[protected-image] IMAGE_ROOT = /home/bordales/public_html/v1/protected/images
[protected-image] SKU fallback enabled
[Server] ✅ Real-Time Monitor: Initialized
[protected-image] Cache initialized with 9638 files
[Schema] PRICE_HAS_COST_MARKUP = true
✅ Database synced – tables are ready
[Server] Running on port 3000 in development mode
[Server] Health check: http://localhost:3000/healthz
[Server] Ready check: http://localhost:3000/readyz
[Server] ✅ WhatsApp Service: Loaded
[Server] ✅ AI Assistant: Loaded
[Server] ✅ Gate System: Loaded
[TOP-DEBUG] Request: GET /api/v3/ping
{"t":"2026-02-20T16:41:09.324Z","event":"tenancy.host","rid":null,"raw":"127.0.0.1","norm":"127.0.0.1"}
{"t":"2026-02-20T16:41:09.342Z","event":"tenants.lookup.exact.ok","rid":null,"ms":15.0768,"sql":"SELECT id, name, domain, base_currency, timezone, recaptcha_secret, recaptcha_site_key, theme, email, phone, address, company_name FROM tenants WHERE LOWER(TRIM(TRAILING '-' FROM domain)) = ? LIMIT 1","params":["127.0.0.1"],"rows":0}
{"t":"2026-02-20T16:41:09.367Z","event":"tenants.lookup.apex.ok","rid":null,"ms":22.9351,"sql":"SELECT id, name, domain, base_currency, timezone, recaptcha_secret, recaptcha_site_key, theme, email, phone, address, company_name FROM tenants WHERE LOWER(TRIM(TRAILING '-' FROM domain)) = ? LIMIT 1","params":["0.1"],"rows":0}
{"t":"2026-02-20T16:41:09.369Z","event":"tenancy.apex","rid":null,"apex":"0.1","found":false}
{"t":"2026-02-20T16:41:09.370Z","event":"tenancy.fallback","rid":null,"reason":"no_match","tried":"127.0.0.1"}
{"t":"2026-02-20T16:41:09.383Z","event":"tenants.lookup.default.ok","rid":null,"ms":12.4793,"sql":"SELECT id, name, domain, base_currency, timezone, recaptcha_secret, recaptcha_site_key, theme, email, phone, address, company_name FROM tenants WHERE id=1 LIMIT 1","params":[],"rows":1}
{"t":"2026-02-20T16:41:09.385Z","event":"tenancy.ok","rid":null,"ms":63,"hostRaw":"127.0.0.1:3000","hostNorm":"127.0.0.1","matched":true,"tenant":{"id":1,"domain":"mobi.giftwrap.co.za"},"hdrs":{"host":"127.0.0.1:3000","xfh":null,"xoh":null}}
[API] {
  id: null,
  status: 200,
  ms: 90,
  method: 'GET',
  path: '/api/v3/ping',
  origin: null,
  host: '127.0.0.1:3000',
  tenantId: 1,
  authenticated: false
}
