mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
15 lines
No EOL
255 B
JavaScript
15 lines
No EOL
255 B
JavaScript
import dotenv from 'dotenv';
|
|
import _ from 'lodash';
|
|
|
|
const result = dotenv.config();
|
|
|
|
let envs;
|
|
|
|
if (!('error' in result)) {
|
|
envs = result.parsed;
|
|
} else {
|
|
envs = {};
|
|
_.each(process.env, (value, key) => envs[key] = value);
|
|
}
|
|
|
|
module.exports = envs; |