MCPcopy Create free account
hub / github.com/Noumena-Network/code / registerUpstreamProxyEnvFn

Function registerUpstreamProxyEnvFn

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

Source from the content-addressed store, hash-verified

73 * module has been lazily loaded. Must be called before any subprocess is spawned.
74 */
75export function registerUpstreamProxyEnvFn(
76 fn: () => Record<string, string>,
77): void {
78 _getUpstreamProxyEnv = fn
79}
80
81export function subprocessEnv(): NodeJS.ProcessEnv {
82 // 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