File tree 1 file changed +5
-1
lines changed
packages/@vue/cli-service/lib/commands
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,11 @@ module.exports = (api, options) => {
101
101
}
102
102
103
103
// resolve server options
104
- const useHttps = args . https || projectDevServerOptions . https || defaults . https
104
+ 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
105
109
const protocol = useHttps ? 'https' : 'http'
106
110
const host = args . host || process . env . HOST || projectDevServerOptions . host || defaults . host
107
111
portfinder . basePort = args . port || process . env . PORT || projectDevServerOptions . port || defaults . port
You can’t perform that action at this time.
0 commit comments