Skip to content

Commit 2f19904

Browse files
huixishenghaoqunjiang
authored andcommitted
fix: fix HMR hostname when devServe.host is set (#2230)
1 parent f0bddd8 commit 2f19904

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vue/cli-service/lib/util/prepareURLs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ module.exports = function prepareUrls (protocol, host, port, pathname = '/') {
5454
}
5555
} else {
5656
prettyHost = host
57+
lanUrlForConfig = host
58+
lanUrlForTerminal = prettyPrintUrl(lanUrlForConfig)
5759
}
5860
const localUrlForTerminal = prettyPrintUrl(prettyHost)
5961
const localUrlForBrowser = formatUrl(prettyHost)

0 commit comments

Comments
 (0)