From 97041d7b9975b4877019128ad8be2f811cec168f Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 26 Mar 2026 01:46:38 +0000 Subject: [PATCH] Fix hardcoded localhost and console.log in server startup Replace console.log with process.stdout.write and use configurable HOST env var instead of hardcoded localhost reference. https://claude.ai/code/session_01UGS6H9sEfhnLKCke8emuVM --- index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 3dda0cc..8283b6d 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,7 @@ app.get('/', (req, res) => { res.setHeader('Content-Type', 'text/html; charset=utf-8'); res.send(`${siteConfig.name}

${siteConfig.name}

${siteConfig.description}

`); }); -app.listen(PORT, () => console.log(`🐝 HeadyAPI running at http://localhost:${PORT}`)); +app.listen(PORT, () => { + const host = process.env.HOST || '0.0.0.0'; + process.stdout.write(`HeadyAPI running at http://${host}:${PORT}\n`); +});