Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
};
// Support for PROTOCOL_VERSION only for tests
if (process.env.NODE_ENV === 'test' && process.env.PROTOCOL_VERSION) {
appConfig.app.protocolVersion = process.env.PROTOCOL_VERSION;
}
configurator.loadConfig(appConfig);
const { NETWORK, CUSTOM_CONFIG_FILE } = configurator.getConfig();
// Variable is used to identify different networks on NewRelic
process.env.LISK_NETWORK = NETWORK;
configurator.loadConfigFile(
path.resolve(__dirname, `../../config/${NETWORK}/config`)
);
if (CUSTOM_CONFIG_FILE) {
configurator.loadConfigFile(path.resolve(CUSTOM_CONFIG_FILE));
}
const config = configurator.getConfig();
// To run multiple applications for same network for integration tests
config.app.label = `lisk-${NETWORK}-${config.modules.http_api.httpPort}`;
export { config };