diff --git a/lib/common/util/config.js b/lib/common/util/config.js index 583a05af0..822ee8517 100644 --- a/lib/common/util/config.js +++ b/lib/common/util/config.js @@ -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