Skip to content

Commit 2c131fa

Browse files
committed
added environmental variable option to bws.config.js
1 parent 08d948c commit 2c131fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/bitcore-wallet-service/src/config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,9 @@ const Config = (): any => {
477477

478478
// Override default values with bws.config.js' values, if present
479479
try {
480+
const path = process.env.BWS_CONFIG || '../../bws.config';
480481
// eslint-disable-next-line @typescript-eslint/no-require-imports
481-
const bwsConfig = require('../../bws.config');
482+
const bwsConfig = require(path);
482483
defaultConfig = _.merge(defaultConfig, bwsConfig);
483484
} catch {
484485
logger.info('bws.config.js not found, using default configuration values');

0 commit comments

Comments
 (0)