We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 870ff16 commit d4e53f9Copy full SHA for d4e53f9
1 file changed
cli/src/utils/codebuff-api.ts
@@ -1,4 +1,5 @@
1
import { WEBSITE_URL } from '@codebuff/sdk'
2
+import { getSystemProcessEnv } from './env'
3
4
import type {
5
PublishAgentsResponse,
@@ -208,7 +209,7 @@ export interface CodebuffApiClient {
208
209
* Returns undefined when no proxy is configured.
210
*/
211
export function resolveProxyUrl(
- env: Record<string, string | undefined> = process.env,
212
+ env: Record<string, string | undefined> = getSystemProcessEnv(),
213
): string | undefined {
214
return (
215
env['HTTPS_PROXY'] ||
0 commit comments