Skip to content

Commit

Permalink
set default autoGeoJSON if not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-fox committed Apr 12, 2021
1 parent f6db4b7 commit 98a3149
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/commonConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,11 @@ function processEnvironmentVariables() {
config.autocast = process.env.IOTA_AUTOCAST === 'true';
}


if (process.env.IOTA_AUTOCAST_GEOJSON) {
config.autocastGeoJSON = process.env.IOTA_AUTOCAST_GEOJSON.split(',').map((ctx) => ctx.trim());
}
config.autocastGeoJSON = [] || config.autocastGeoJSON;

if (process.env.IOTA_MULTI_CORE) {
config.multiCore = process.env.IOTA_MULTI_CORE === 'true';
Expand Down

0 comments on commit 98a3149

Please sign in to comment.