File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/@vue/cli-service/lib/commands Expand file tree Collapse file tree 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) => {
101101 }
102102
103103 // 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
105109 const protocol = useHttps ? 'https' : 'http'
106110 const host = args . host || process . env . HOST || projectDevServerOptions . host || defaults . host
107111 portfinder . basePort = args . port || process . env . PORT || projectDevServerOptions . port || defaults . port
You can’t perform that action at this time.
0 commit comments