fix(config): support HOST_PORT as fallback for PORT environment variable
This commit is contained in:
1 parent
c9ba15bca0
commit
86c7dadb9b
2 files changed
+13
-1
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user