-
Notifications
You must be signed in to change notification settings - Fork 159
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
fix: add https-proxy-agent to fetch requests #1433
Conversation
🦋 Changeset detectedLatest commit: 50f5541 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Coverage report
Show new covered files 🐣
Show files with reduced coverage 🔻
Test suite run success722 tests passing in 102 suites. Report generated by 🧪jest coverage report action from 50f5541 |
Cool! I think this relates to some open issue(s) though, could you link them from the PR description? |
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.
Please test this in Workflows and add some docs for the new proxy feature.
Could you also update the description so it reflects how to use the proxy feature and how #1404 got resolved?
|
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.
LGTM
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.
Left a minor comment. Otherwise looks good.
…k for push command auth check, small refactors
368c353
to
50f5541
Compare
This reverts commit 2639dc4.
What/Why/How?
Adding https-proxy-agent package to fix issues with requests when using CLI behind proxy. Create better mechanism for handling
env.REDOCLY_DOMAIN
usage in few modules.Now if you need to run the CLI tool behind a proxy, you can use the HTTP_PROXY and HTTPS_PROXY environment variables to configure the proxy settings.
https-proxy-agent
package was used fornode-fetch
requests. Now we pass agent for everyfetchWithTimeout
request, as well as other regularfetch
request.Reference
Resolves #1404
Fixes #529
Fixes #1146
Testing
Fixed unit tests. Tested with few CLI commands:
push
,lint
etc.Screenshots (optional)
n/a
Has code been changed?
Yes
Check yourself
Security