Skip to content
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

Merged
merged 6 commits into from Dec 8, 2021
Merged

feat: add https list #5011

merged 6 commits into from Dec 8, 2021

Conversation

SoloJiang
Copy link
Collaborator

@SoloJiang SoloJiang commented Dec 3, 2021

  • [feat] add https url list
  • [chore] enhance applyCliOptions
  • [chore] RedirectPathLoader should include .rax|.ice

@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2021

Codecov Report

Merging #5011 (3892912) into release-next (2bf363c) will increase coverage by 0.03%.
The diff coverage is 85.71%.

Impacted file tree graph

@@               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              
Impacted Files Coverage Δ
packages/build-user-config/src/applyCliOption.js 90.00% <85.71%> (-3.75%) ⬇️

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')];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

边界 case 处理下,可能未设置 HTTPS_URL_LIST 的值

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined 也可以被扩展

@SoloJiang SoloJiang merged commit c7c6b11 into release-next Dec 8, 2021
@SoloJiang SoloJiang deleted the feat/https-list branch December 8, 2021 04:06
@ClarkXia ClarkXia mentioned this pull request Dec 8, 2021
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants