xian-ncc-da-client/EnvParse.js

12 lines
301 B
JavaScript
Raw Normal View History

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