Fix harness PTY: bind to 0.0.0.0 instead of HOSTNAME
All checks were successful
CI / lint-and-test (push) Successful in 36s
Deploy Production / deploy (push) Successful in 1m19s
CI / build (push) Successful in 1m51s

In K8s, HOSTNAME is set to the pod name, so the server only listened
on that interface. The PTY server's loopback fetch to 127.0.0.1 was
connection-refused. Always bind to 0.0.0.0 so loopback works.
This commit is contained in:
Julia McGhee
2026-03-21 21:51:17 +00:00
parent 9fe5b395ca
commit 58c12a8d77

View File

@@ -3,7 +3,8 @@ const path = require("path");
const { parse } = require("url");
const dev = process.env.NODE_ENV !== "production";
const hostname = process.env.HOSTNAME || "0.0.0.0";
// HOSTNAME in K8s is the pod name — always bind to 0.0.0.0
const hostname = "0.0.0.0";
const port = parseInt(process.env.PORT || "3100", 10);
// In production, load the standalone config to avoid webpack dependency