MCPcopy Create free account
hub / github.com/codeaashu/claude-code / registerUpstreamProxyEnvFn

Function registerUpstreamProxyEnvFn

src/utils/subprocessEnv.ts:73–77  ·  view source on GitHub ↗
(
  fn: () => Record<string, string>,
)

Source from the content-addressed store, hash-verified

71 * module has been lazily loaded. Must be called before any subprocess is spawned.
72 */
73export function registerUpstreamProxyEnvFn(
74 fn: () => Record<string, string>,
75): void {
76 _getUpstreamProxyEnv = fn
77}
78
79export function subprocessEnv(): NodeJS.ProcessEnv {
80 // CCR upstreamproxy: inject HTTPS_PROXY + CA bundle vars so curl/gh/python

Callers 1

init.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected