Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0260e4d

Browse filesBrowse files
authored
fix: add devServer.server.type to useHttps judgement (#7222)
1 parent 07052c4 commit 0260e4d
Copy full SHA for 0260e4d

File tree

1 file changed

+2
-1
lines changed
Filter options
  • packages/@vue/cli-service/lib/commands

1 file changed

+2
-1
lines changed

‎packages/@vue/cli-service/lib/commands/serve.js

Copy file name to clipboardExpand all lines: packages/@vue/cli-service/lib/commands/serve.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ module.exports = (api, options) => {
108108
const modesUseHttps = ['https', 'http2']
109109
const serversUseHttps = ['https', 'spdy']
110110
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))
112113
const useHttps = args.https || optionsUseHttps || defaults.https
113114
const protocol = useHttps ? 'https' : 'http'
114115
const host = args.host || process.env.HOST || projectDevServerOptions.host || defaults.host

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.