File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ export default function optionsSanitiser(input: Input): Config {
68
68
options . customHeadersToSkipOnWeakVersion || [ ]
69
69
) . map ( s => s . toLowerCase ( ) ) ;
70
70
71
- options . port = Number ( process . env [ 'PORT' ] || options . port ) ;
71
+ options . port = options . port || process . env [ 'PORT' ] || 3000 ;
72
72
options . timeout = options . timeout || 1000 * 60 * 2 ;
73
73
options . keepAliveTimeout =
74
74
options . keepAliveTimeout || DEFAULT_NODE_KEEPALIVE_MS ;
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ export interface Config {
132
132
path : string ;
133
133
plugins : Record < string , ( ...args : unknown [ ] ) => void > ;
134
134
pollingInterval : number ;
135
- port : number ;
135
+ port : number | string ;
136
136
postRequestPayloadSize ?: number ;
137
137
prefix : string ;
138
138
publishAuth ?: {
You can’t perform that action at this time.
0 commit comments