We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d382bd commit 495d4d5Copy full SHA for 495d4d5
lib/Server.js
@@ -772,10 +772,8 @@ class Server {
772
);
773
}
774
775
- const shouldFindPort = this.options.port === 'auto';
776
- const initialPort = shouldFindPort ? null : port || this.options.port;
777
return (
778
- findPort(initialPort)
+ findPort(port || this.options.port)
779
// eslint-disable-next-line no-shadow
780
.then((port) => {
781
this.options.port = port;
lib/utils/findPort.js
@@ -18,7 +18,7 @@ function runPortFinder() {
18
19
20
function findPort(port) {
21
- if (port) {
+ if (port && port !== 'auto') {
22
return Promise.resolve(port);
23
24
0 commit comments