chore(fix): fix proxy agent

Merged
WI
6mo ago
+23-10

Summary by cubic

Fixes proxy handling in the generator CLI so HTTP(S) requests honor HTTP_PROXY/HTTPS_PROXY. Adds a proxy-agent type shim and Jest config updates; temporarily disables the HTTP proxy check in CI.

  • Bug Fixes

    • Import named ProxyAgent from proxy-agent; reuse a single instance for httpAgent/httpsAgent.
    • Set proxy = false in @nestjs/axios when proxy envs are present.
    • Add apps/generator-cli/src/proxy-agent.d.ts to support both default and named imports.
    • Jest: broaden transform to ^.+\\.[cm]?[tj]s$, include mjs/cjs, and allowlist proxy-agent deps in transformIgnorePatterns.
  • CI

    • Comment out the "Test with HTTP proxy" step in .github/workflows/build.yml.