-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.js
More file actions
34 lines (28 loc) · 994 Bytes
/
config.js
File metadata and controls
34 lines (28 loc) · 994 Bytes
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
33
34
"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",
FAUCET_PHRASE: "REPLACE ME WITH FAUCET ACCOUNT PHRASE",
CENTRALIZED_API_URL: "http://localhost:8010",
EXPLORER_API_URL: "http://localhost:3000",
};
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);