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 9136696 commit 33f954cCopy full SHA for 33f954c
packages/@vue/cli-service/lib/commands/serve.js
@@ -112,6 +112,7 @@ module.exports = (api, options) => {
112
? rawPublicUrl
113
: `${protocol}://${rawPublicUrl}`
114
: null
115
+ const publicHost = publicUrl ? /^[a-zA-Z]+:\/\/([^/?#]+)/.exec(publicUrl)[1] : undefined
116
117
const urls = prepareURLs(
118
protocol,
@@ -188,6 +189,7 @@ module.exports = (api, options) => {
188
189
}, projectDevServerOptions, {
190
https: useHttps,
191
proxy: proxySettings,
192
+ public: publicHost,
193
// eslint-disable-next-line no-shadow
194
before (app, server) {
195
// launch editor support.
0 commit comments