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 ef08a08 commit bddd64dCopy full SHA for bddd64d
packages/@vue/cli-service/lib/commands/serve.js
@@ -101,7 +101,11 @@ module.exports = (api, options) => {
101
}
102
103
// resolve server options
104
- const useHttps = args.https || projectDevServerOptions.https || defaults.https
+ const modesUseHttps = ['https', 'http2']
105
+ const serversUseHttps = ['https', 'spdy']
106
+ const optionsUseHttps = modesUseHttps.some(modeName => !!projectDevServerOptions[modeName]) ||
107
+ (typeof projectDevServerOptions.server === 'string' && serversUseHttps.includes(projectDevServerOptions.server))
108
+ const useHttps = args.https || optionsUseHttps || defaults.https
109
const protocol = useHttps ? 'https' : 'http'
110
const host = args.host || process.env.HOST || projectDevServerOptions.host || defaults.host
111
portfinder.basePort = args.port || process.env.PORT || projectDevServerOptions.port || defaults.port
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments