This commit is contained in:
Reinier Criel 2025-11-26 14:13:49 -08:00
parent a57c37b58d
commit 4bfc315b57
12 changed files with 505 additions and 2 deletions

View file

@ -36,10 +36,19 @@ function getSafeChainProxyEnvironmentVariables() {
return {};
}
const proxyUrl = `http://127.0.0.1:${state.port}`;
return {
HTTPS_PROXY: `http://localhost:${state.port}`,
GLOBAL_AGENT_HTTP_PROXY: `http://localhost:${state.port}`,
// Uppercase variants (standard)
HTTP_PROXY: proxyUrl,
HTTPS_PROXY: proxyUrl,
GLOBAL_AGENT_HTTP_PROXY: proxyUrl,
NODE_EXTRA_CA_CERTS: getCaCertPath(),
// Lowercase variants (some tools like Poetry/requests prefer these)
http_proxy: proxyUrl,
https_proxy: proxyUrl,
// Clear NO_PROXY to ensure all requests go through our proxy
NO_PROXY: "",
no_proxy: "",
};
}