We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1aef726 commit 622ebc7Copy full SHA for 622ebc7
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