We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d948c commit 2c131faCopy full SHA for 2c131fa
packages/bitcore-wallet-service/src/config.ts
@@ -477,8 +477,9 @@ const Config = (): any => {
477
478
// Override default values with bws.config.js' values, if present
479
try {
480
+ const path = process.env.BWS_CONFIG || '../../bws.config';
481
// eslint-disable-next-line @typescript-eslint/no-require-imports
- const bwsConfig = require('../../bws.config');
482
+ const bwsConfig = require(path);
483
defaultConfig = _.merge(defaultConfig, bwsConfig);
484
} catch {
485
logger.info('bws.config.js not found, using default configuration values');
0 commit comments