Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions lib/common/util/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ function initializeConfig () {
...DEFAULT_CONFIG,
...JSON.parse(process.env.SETTINGS)
}
if (config.modules.gtfsplus && config.modules.gtfsplus.enabled) {
// $FlowFixMe - assume file exists and make flow happy
const gtfsplus = require('../../../gtfsplus.yml')
config.specifications.gtfsplus = gtfsplus
}
// Note: The GTFS+ file should be required regardless of whether the module is
// enabled. Otherwise, it will not be loaded properly because the UI depends on
// the server config from the appinfo endpoint.
// $FlowFixMe - assume file exists and make flow happy
const gtfsplus = require('../../../gtfsplus.yml')
config.specifications.gtfsplus = gtfsplus
// $FlowFixMe - assume file exists and make flow happy
const gtfs = require('../../../gtfs.yml')
config.specifications.gtfs = gtfs
Expand Down