fix(config): support HOST_PORT as fallback for PORT environment variable

This commit is contained in:
Lucas Winther committed 2026-09-07 01:16:48 +02:00
1 parent c9ba15bca0
commit 86c7dadb9b
2 files changed
+13 -1

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ export function loadConfig(
readOnlyEnv === "yes";
const portArg = parseCliArg(argv, "--port");
const portStr = portArg ?? env.PORT;
const portStr = portArg ?? env.PORT ?? env.HOST_PORT;
let port: number | undefined;
if (portStr !== undefined && portStr.trim() !== "") {
const parsed = parseInt(portStr.trim(), 10);