Changeset f1ee40e in Klonkt


Ignore:
Timestamp:
06/28/2026 11:30:57 AM (2 months ago)
Author:
Robin Genis <roboburr@â€Ķ>
Branches:
main
Children:
4fdbbe6
Parents:
2f919c0
Message:

chore(server): startup log shows PUBLIC_BASE_URL when set (was hardcoded localhost)

PUBLIC_BASE_URL already includes scheme+host, so it's logged as-is (no :PORT); the local bind
HOST:PORT is shown as a secondary line. Falls back to ​http://localhost:PORT when unset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    r2f919c0 rf1ee40e  
    447447
    448448server.listen(PORT, HOST, () => {
     449  const baseUrl = (process.env.PUBLIC_BASE_URL || '').replace(/\/+$/, '');
    449450  console.log('');
    450451  console.log('ðŸŠķ Klonkt Beta');
    451   console.log(`   http://localhost:${PORT}`);
     452  console.log(`   ${baseUrl || `http://localhost:${PORT}`}`);
     453  if (baseUrl) console.log(`   (bound to ${HOST}:${PORT})`);
    452454  console.log('');
    453455  console.log(`   âœ“ Security: Helmet, CSP, secure sessions`);
Note: See TracChangeset for help on using the changeset viewer.