Skip to content

Commit 916f14b

Browse files
👷 fix temporal dead zone (#3974)
1 parent 33318f6 commit 916f14b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎scripts/deploy/deploy-prod-dc.ts‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ const ONE_MINUTE_IN_SECOND = 60
1212
const GATE_DURATION = 30 * ONE_MINUTE_IN_SECOND
1313
const GATE_INTERVAL = ONE_MINUTE_IN_SECOND
1414

15+
// Major DCs are the ones that are deployed last.
16+
// They have their own step jobs in `deploy-manual.yml` and `deploy-auto.yml`.
17+
const MAJOR_DCS = ['root', 'us1', 'eu1']
18+
19+
// Minor DCs are all the DCs from `siteByDatacenter` that are not in `MAJOR_DCS`.
20+
function getAllMinorDcs(): string[] {
21+
return Object.keys(siteByDatacenter).filter((dc) => !MAJOR_DCS.includes(dc))
22+
}
23+
1524
const {
1625
values: { 'check-monitors': checkMonitors },
1726
positionals,
@@ -54,12 +63,3 @@ async function gateMonitors(uploadPath: string): Promise<void> {
5463
}
5564
printLog() // new line
5665
}
57-
58-
// Major DCs are the ones that are deployed last.
59-
// They have their own step jobs in `deploy-manual.yml` and `deploy-auto.yml`.
60-
const MAJOR_DCS = ['root', 'us1', 'eu1']
61-
62-
// Minor DCs are all the DCs from `siteByDatacenter` that are not in `MAJOR_DCS`.
63-
function getAllMinorDcs(): string[] {
64-
return Object.keys(siteByDatacenter).filter((dc) => !MAJOR_DCS.includes(dc))
65-
}

0 commit comments

Comments
 (0)