xian-ncc-da-client/EnvParse.js
2023-10-17 10:50:47 +08:00

10 lines
221 B
JavaScript

const DotEnv = require('dotenv')
const parsedEnv = DotEnv.config({ path: `.env.${process.env.NODE_ENV}` }).parsed
module.exports = function () {
console.log(process.env)
console.log(parsedEnv);
return parsedEnv
}