File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ const main = async (args: Args): Promise<void> => {
34
34
commit : commit || "development" ,
35
35
host : args . host || ( args . auth === AuthType . Password && typeof args . cert !== "undefined" ? "0.0.0.0" : "localhost" ) ,
36
36
password : originalPassword ? hash ( originalPassword ) : undefined ,
37
- port : typeof args . port !== "undefined" ? args . port : process . env . PORT !== "" ? process . env . PORT : 8080 ,
37
+ port : typeof args . port !== "undefined" ? args . port : process . env . PORT ? parseInt ( process . env . PORT , 10 ) : 8080 ,
38
38
socket : args . socket ,
39
39
}
40
40
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export interface HttpServerOptions {
100
100
readonly commit ?: string
101
101
readonly host ?: string
102
102
readonly password ?: string
103
- readonly port ?: number | string
103
+ readonly port ?: number
104
104
readonly socket ?: string
105
105
}
106
106
You can’t perform that action at this time.
0 commit comments