-
Notifications
You must be signed in to change notification settings - Fork 6k
Allow configuring trusted domains at run-time #7339
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
Conversation
It can be set either: 1. In the product.json (normally the product.json is embedded during the build and not read at run-time). 2. With the --link-protection-trusted-domains flag.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7339 +/- ##
==========================================
+ Coverage 73.00% 73.44% +0.43%
==========================================
Files 29 29
Lines 1793 1796 +3
Branches 383 384 +1
==========================================
+ Hits 1309 1319 +10
+ Misses 409 404 -5
+ Partials 75 73 -2
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
a9c8392
to
d754e0f
Compare
if (opt === true) { | ||
return `--${optName}` | ||
} else if (Array.isArray(opt)) { | ||
return opt.map((o) => `--${optName}=${o}`) | ||
} | ||
return `--${optName}=${opt}` |
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.
if (opt === true) { | |
return `--${optName}` | |
} else if (Array.isArray(opt)) { | |
return opt.map((o) => `--${optName}=${o}`) | |
} | |
return `--${optName}=${opt}` | |
if (opt === true) { | |
return `--${optName}` | |
} | |
if (Array.isArray(opt)) { | |
return opt.map((o) => `--${optName}=${o}`) | |
} | |
return `--${optName}=${opt}` |
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.
Technically equivalent, true, but stylistically I like having one less line 😛
Also fixed a long-standing issue with repeatable flags in the config.