xian-ncc-da-client/EnvParse.js

9 lines
194 B
JavaScript
Raw Normal View History

2023-10-16 14:01:38 +08:00
const DotEnv = require('dotenv')
const parsedEnv = DotEnv.config({ path: `.env.${process.env.NODE_ENV}` }).parsed
module.exports = function () {
2023-10-17 10:49:38 +08:00
console.log(parsedEnv);
2023-10-16 14:01:38 +08:00
return parsedEnv
}