-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.js
32 lines (26 loc) · 893 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
'use strict';
const { deepMerge } = require('./src/utils/common');
const { version } = require('./package.json');
const config = {
ENVIRONMENT: process.env.npm_package_config_env || 'development',
IS_LIVE: false,
SERVER: {
PORT: process.env.npm_package_config_port || 8060,
},
API_ROUTE_PREFIX: `/v${version.split('.')[0]}`,
METAVERSE_NFTs_ID: 1,
LAND_NFTs_ID: 0,
ONBOARDER_PHRASE: 'REPLACE ME WITH AUTO LLD ONBOARDER ACCOUNT PHRASE',
CENTRALIZED_API_URL: "http://localhost:8010",
};
try {
/* eslint-disable import/no-dynamic-require, global-require */
const overrides = require(`./config.${config.ENVIRONMENT}`);
/* eslint-enable import/no-dynamic-require, global-require */
// Override default configuration
deepMerge(config, overrides);
} catch (e) {
console.error(e.message);
}
console.log('ENVIRONMENT', config.ENVIRONMENT);
module.exports = Object.freeze(config);