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 e7e2fb2 commit f0498f6Copy full SHA for f0498f6
packages/@vue/cli-service/lib/commands/serve.js
@@ -82,7 +82,8 @@ module.exports = (api, options) => {
82
83
// inject dev & hot-reload middleware entries
84
if (!isProduction) {
85
- const sockjsUrl = url.format({
+ const publicOpt = projectDevServerOptions.public
86
+ const sockjsUrl = publicOpt ? `//${publicOpt}/sockjs-node` : url.format({
87
protocol,
88
port,
89
hostname: urls.lanUrlForConfig || 'localhost',
0 commit comments