chore: set the port as number if it comes through as a string
This commit is contained in:
@@ -85,7 +85,10 @@ export class ServiceBuilderImpl implements ServiceBuilder {
|
||||
|
||||
const baseOptions = readBaseOptions(backendConfig);
|
||||
if (baseOptions.listenPort) {
|
||||
this.port = baseOptions.listenPort;
|
||||
this.port =
|
||||
typeof baseOptions.listenPort === 'string'
|
||||
? parseInt(baseOptions.listenPort, 10)
|
||||
: baseOptions.listenPort;
|
||||
}
|
||||
if (baseOptions.listenHost) {
|
||||
this.host = baseOptions.listenHost;
|
||||
|
||||
Reference in New Issue
Block a user