Skip to content

Commit 4407ac9

Browse files
pixeldrewlukeed
andauthored
fix(sirv-cli): ensure get-port receives number (#165)
* fix: corrected input port to get-port * Update packages/sirv-cli/index.js --------- Co-authored-by: Luke Edwards <lukeed@github.com>
1 parent 101be8e commit 4407ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sirv-cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ module.exports = function (dir, opts) {
7878
});
7979
}
8080

81-
opts.port = PORT || opts.port;
81+
opts.port = +(PORT || opts.port);
8282
let hostname = HOST || opts.host || '0.0.0.0';
8383
toPort({ host: hostname, port: opts.port }).then(port => {
8484
let isOther = port != opts.port;

0 commit comments

Comments
 (0)