Skip to content

Commit d4e53f9

Browse files
committed
Use env helper for proxy lookup
1 parent 870ff16 commit d4e53f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cli/src/utils/codebuff-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { WEBSITE_URL } from '@codebuff/sdk'
2+
import { getSystemProcessEnv } from './env'
23

34
import type {
45
PublishAgentsResponse,
@@ -208,7 +209,7 @@ export interface CodebuffApiClient {
208209
* Returns undefined when no proxy is configured.
209210
*/
210211
export function resolveProxyUrl(
211-
env: Record<string, string | undefined> = process.env,
212+
env: Record<string, string | undefined> = getSystemProcessEnv(),
212213
): string | undefined {
213214
return (
214215
env['HTTPS_PROXY'] ||

0 commit comments

Comments
 (0)