Skip to content

Commit e712c85

Browse files
authored
ensure that GOOGLE_MAPS_API_KEY is set when uploading to staging or prod (#547)
1 parent b3640e1 commit e712c85

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/collector.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ const IGNORED_FILES = [
1515
const ERROR_FILES = [];
1616
const COMPLETED_FILES = [];
1717

18+
if (process.env.target && !process.env.GOOGLE_MAPS_API_KEY) {
19+
throw new Error(
20+
"GOOGLE_MAPS_API_KEY environment variable must be set when not uploading locally. See mappings/MapView.ts"
21+
);
22+
}
23+
1824
async function main(list = []) {
1925
console.log("Running on", getUrl());
2026

0 commit comments

Comments
 (0)