I am trying to use the dotenv NPM package and it is not working for me. I have a file config/config.js with the following content:
dotenv
config/config.js
const dotenv = require('dotenv'), path = require('path') dotenv.config({path: path.join(__dirname, '../.env')})