-
Notifications
You must be signed in to change notification settings - Fork 19
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: fetch proxy configuration from NPM if any #9
Conversation
Instead of adding new And please add some unit tests as well. |
Not all proxy-related env variables are mirrored in NPM config, e.g. there's no such thing as
My bad! Done. |
I see. There is no 1:1 relation between the variable names used here and the one used by npm. Could you use the
Thaanks! |
I was driven by an opposite logic: preferring I consider the following use case: I have |
This sounds reasonable. I also looked up the origin of the npm config documentation, and found that it was introduced here: npm/npm#6525 In that implementation, the default value of In your current patch, you're using the npm-specific environment variables before falling back to the normal ones, i.e.:
Could you swap 2 and 3, so that the protocol-specific environment variables take precedence over the ultimate fallback? |
Indeed, good catch! Done. |
is there anything else I can do? |
Thanks for your patch. Is there anything else before I publish an update? |
No, I don't think so. Once you release a new version, we'll bump it right away in Playwright. Thank you! |
Fixes #8