Skip to content

Commit e5c4811

Browse files
committed
refactor(eas-cli): use explicit env from node:process
1 parent cadbf7a commit e5c4811

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/eas-cli/src/fetch.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { env } from 'node:process';
12
import {
23
ProxyAgent,
34
type RequestInfo,
@@ -31,7 +32,7 @@ export default async function (url: RequestInfo, init?: RequestInit): Promise<Re
3132
}
3233

3334
function installProxyAgent(): void {
34-
const httpsProxyUrl = process.env.https_proxy;
35+
const httpsProxyUrl = env.https_proxy;
3536

3637
if (httpsProxyUrl && !(getGlobalDispatcher() instanceof ProxyAgent)) {
3738
setGlobalDispatcher(new ProxyAgent(httpsProxyUrl));

0 commit comments

Comments
 (0)