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: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
|
|
|
|
}
|