File tree 1 file changed +2
-1
lines changed
packages/@vue/cli-service/lib/commands
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ module.exports = (api, options) => {
108
108
const modesUseHttps = [ 'https' , 'http2' ]
109
109
const serversUseHttps = [ 'https' , 'spdy' ]
110
110
const optionsUseHttps = modesUseHttps . some ( modeName => ! ! projectDevServerOptions [ modeName ] ) ||
111
- ( typeof projectDevServerOptions . server === 'string' && serversUseHttps . includes ( projectDevServerOptions . server ) )
111
+ ( typeof projectDevServerOptions . server === 'string' && serversUseHttps . includes ( projectDevServerOptions . server ) ) ||
112
+ ( typeof projectDevServerOptions . server === 'object' && projectDevServerOptions . server !== null && serversUseHttps . includes ( projectDevServerOptions . server . type ) )
112
113
const useHttps = args . https || optionsUseHttps || defaults . https
113
114
const protocol = useHttps ? 'https' : 'http'
114
115
const host = args . host || process . env . HOST || projectDevServerOptions . host || defaults . host
You can’t perform that action at this time.
0 commit comments