fix: config value
This commit is contained in:
parent
b32ccb4a9f
commit
8b99be4e5f
|
|
@ -1,4 +1,3 @@
|
|||
require('dotenv').config();
|
||||
require('module-alias/register');
|
||||
require('./utils/request-wrapper');
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
require('dotenv').config();
|
||||
let envs = process.env;
|
||||
let value;
|
||||
|
||||
|
|
@ -106,5 +107,7 @@ module.exports = {
|
|||
envs = Object.assign(process.env, env);
|
||||
calculateValue();
|
||||
},
|
||||
value,
|
||||
get value() {
|
||||
return value;
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
let app;
|
||||
const config = require('./config');
|
||||
let app;
|
||||
|
||||
module.exports = {
|
||||
init: (conf) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue