Skip to main content
Version: Next

bootstrapEnvProxyAgents()

Home > @backstage/cli-common > bootstrapEnvProxyAgents

This function can be called to setup undici and node-fetch Proxy agents.

You can set GLOBAL_AGENT_HTTP(S)_PROXY to configure a proxy to be used in the CLIs.

You can also configure a custom namespace by setting GLOBAL_AGENT_ENVIRONMENT_VARIABLE_NAMESPACE which will replace the default "GLOBAL_AGENT_" env-var prefix.

Make sure to call this function before any other imports.

Signature:

function bootstrapEnvProxyAgents(): void;

Returns:

void