Skip to content

Commit

Permalink
refactor(eas-cli): use explicit env from node:process
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Jun 8, 2024
1 parent 4472494 commit 598f48d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/eas-cli/src/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { env } from 'node:process';
import {
ProxyAgent,
type RequestInfo,
Expand Down Expand Up @@ -31,7 +32,7 @@ export default async function (url: RequestInfo, init?: RequestInit): Promise<Re
}

function installProxyAgent(): void {
const httpsProxyUrl = process.env.https_proxy;
const httpsProxyUrl = env.https_proxy;

if (httpsProxyUrl && !(getGlobalDispatcher() instanceof ProxyAgent)) {
setGlobalDispatcher(new ProxyAgent(httpsProxyUrl));
Expand Down

0 comments on commit 598f48d

Please sign in to comment.