Skip to content

Commit e6f8412

Browse files
authored
feat(autoupdate): allow setting the autoUpdate endpoint with process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE COMPASS-8534 (#6583)
allow setting the autoUpdate endpoint with process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE
1 parent ea8a5b2 commit e6f8412

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/compass/src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ declare module 'process' {
3232
HADRON_METRICS_SEGMENT_API_KEY?: string;
3333
HADRON_METRICS_SEGMENT_HOST?: string;
3434
HADRON_AUTO_UPDATE_ENDPOINT: string;
35+
HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE?: string;
3536
COMPASS_ATLAS_SERVICE_UNAUTH_BASE_URL_OVERRIDE?: string;
3637
COMPASS_CLIENT_ID_OVERRIDE?: string;
3738
COMPASS_E2E_SKIP_ATLAS_SIGNIN?: string;

packages/compass/src/main/auto-update-manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,9 @@ class CompassAutoUpdateManager {
739739
}
740740

741741
this.autoUpdateOptions = {
742-
endpoint: process.env.HADRON_AUTO_UPDATE_ENDPOINT,
742+
endpoint:
743+
process.env.HADRON_AUTO_UPDATE_ENDPOINT_OVERRIDE ??
744+
process.env.HADRON_AUTO_UPDATE_ENDPOINT,
743745
product: product,
744746
channel: process.env.HADRON_CHANNEL,
745747
platform: process.platform,

0 commit comments

Comments
 (0)