refactor(cli-common): deprecate bootstrapEnvProxyAgents() in favor of Node.js built-in proxy support
Node.js 22.21.0+ and 24.5.0+ support proxy configuration natively via NODE_USE_ENV_PROXY=1 and --use-env-proxy, making the legacy global-agent and undici proxy workarounds unnecessary. Rather than removing the function immediately, deprecate it with context-aware runtime warnings that guide users based on their current configuration: - Users with GLOBAL_AGENT_* vars are told to switch to standard HTTP_PROXY/HTTPS_PROXY and set NODE_USE_ENV_PROXY=1. - Users with HTTP_PROXY/HTTPS_PROXY but no NODE_USE_ENV_PROXY are told to set it. - Users who have already opted in to Node.js built-in proxy see no warning, and the legacy bootstrap is skipped entirely. See #33444 Signed-off-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/cli-common': patch
|
||||
---
|
||||
|
||||
Deprecated `bootstrapEnvProxyAgents()` in favor of Node.js built-in proxy support. Set `NODE_USE_ENV_PROXY=1` alongside your `HTTP_PROXY`/`HTTPS_PROXY` environment variables instead. See the [corporate proxy guide](https://backstage.io/docs/tutorials/corporate-proxy/) for details. This function will be removed in a future release.
|
||||
Reference in New Issue
Block a user