Move makeProxyFetch to src/infra/net/proxy-fetch.ts and add resolveProxyFetchFromEnv which reads standard proxy env vars (HTTPS_PROXY, HTTP_PROXY, and lowercase variants) and returns a proxy-aware fetch via undici's EnvHttpProxyAgent. Telegram re-exports from the shared location to avoid duplication.
2 lines
62 B
TypeScript
2 lines
62 B
TypeScript
export { makeProxyFetch } from "../infra/net/proxy-fetch.js";
|