Skip to content

Commit b3adf48

Browse files
authored
feat: Allow users to pass a custom headers URL via env var npm_config_electron_mirror (#8785)
1 parent 8e3aed6 commit b3adf48

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/fresh-phones-return.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
feat: Allow users to pass a custom electrons headers URL via env var

packages/app-builder-lib/src/util/yarn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function getGypEnv(frameworkInfo: DesktopFrameworkInfo, platform: NodeJS.
7272
// https://github.com/nodejs/node-gyp/issues/21
7373
return {
7474
...common,
75-
npm_config_disturl: "https://electronjs.org/headers",
75+
npm_config_disturl: common.npm_config_electron_mirror || "https://electronjs.org/headers",
7676
npm_config_target: frameworkInfo.version,
7777
npm_config_runtime: "electron",
7878
npm_config_devdir: getElectronGypCacheDir(),

0 commit comments

Comments
 (0)