export const resolveProxy = ({ fallback = DEFAULT_PROXY } = {}) => {
Resolves the proxy value from CLI flags.
--no-proxy wins over --proxy.
Target style API. Preferred for new code.
Helpers
Source: helpers/prepareProxy.mjs
Target Style
Legacy Style
export const proxy = resolveProxy()
/**
* Returns the proxy resolved from the current process flags.
*
* @returns {string | undefined}
* @style legacy
*/
export const getProxy = () => proxy
The proxy resolved from the current process flags.
Legacy API. Kept for older code and not the preferred choice for new code.
export const getProxy = () => proxy
Returns the proxy resolved from the current process flags.
Legacy API. Kept for older code and not the preferred choice for new code.