Skip to content

Commit 8db8960

Browse files
committed
fix: getPort unable to detect the used port because of the host mis-match
1 parent fa8dc5d commit 8db8960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AssetsBundler/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export class AssetsBundler extends Emittery {
233233
*/
234234
let customPort = this.findCustomPort()
235235
if (!customPort) {
236-
const randomPort = await getPort({ port: 8080 })
236+
const randomPort = await getPort({ port: 8080, host: 'localhost' })
237237
customPort = String(randomPort)
238238
this.encoreArgs.push('--port', customPort)
239239
}

0 commit comments

Comments
 (0)