code: function setupForCorporateProxy(proxyConfig) {
    if (!Array.isArray(proxyConfig)) {
      proxyConfig = [proxyConfig];
    }
  
    const proxyServer = process.env.http_proxy || process.env.HTTP_PROXY;
    let agent = null;
  
    if (proxyServer) {
      console.log(`Using corporate proxy server: ${proxyServer}`);
      agent = new HttpsProxyAgent(proxyServer);
      proxyConfig.forEach(entry => { entry.agent = agent; });
    }
  
    return proxyConfig;
  }
docs: /*
  Configures a corporate proxy agent for the API proxy if needed.