New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add https list #5011
feat: add https list #5011
Conversation
Codecov Report
@@ Coverage Diff @@
## release-next #5011 +/- ##
================================================
+ Coverage 29.60% 29.64% +0.03%
================================================
Files 192 192
Lines 4894 4898 +4
Branches 1174 1175 +1
================================================
+ Hits 1449 1452 +3
- Misses 3183 3184 +1
Partials 262 262
|
const { commandArgs } = context; | ||
// Only generate https cert for web task | ||
if (config.get('name') !== 'web') return; | ||
let httpsConfig; | ||
if (https) { | ||
try { | ||
const hosts = ['localhost']; | ||
const hosts = ['localhost', ...getValue('HTTPS_URL_LIST')]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
边界 case 处理下,可能未设置 HTTPS_URL_LIST 的值
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined 也可以被扩展
applyCliOptions
.rax|.ice