chore(fix): fix proxy agent
Merged
WI
6mo ago+23+23+01234567890123456789-10-10-01234567890123456789
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
ProxyAgentfromproxy-agent; reuse a single instance forhttpAgent/httpsAgent. - Set
proxy = falsein@nestjs/axioswhen proxy envs are present. - Add
apps/generator-cli/src/proxy-agent.d.tsto support both default and named imports. - Jest: broaden transform to
^.+\\.[cm]?[tj]s$, includemjs/cjs, and allowlistproxy-agentdeps intransformIgnorePatterns.
- Import named
-
CI
- Comment out the "Test with HTTP proxy" step in
.github/workflows/build.yml.
- Comment out the "Test with HTTP proxy" step in