mirror of
https://github.com/mempool/mempool.git
synced 2024-12-27 08:44:26 +01:00
14 lines
380 B
JavaScript
14 lines
380 B
JavaScript
const fs = require('fs');
|
|
|
|
const CONFIG_FILE = 'mempool-frontend-config.json';
|
|
|
|
module.exports = (on, config) => {
|
|
if (fs.existsSync(CONFIG_FILE)) {
|
|
let contents = JSON.parse(fs.readFileSync(CONFIG_FILE, 'utf8'));
|
|
config.env.BASE_MODULE = contents.BASE_MODULE ? contents.BASE_MODULE : 'mempool';
|
|
} else {
|
|
config.env.BASE_MODULE = 'mempool';
|
|
}
|
|
return config;
|
|
}
|