Instale o DOTENV
# For python users only
pip install python-dotenv
Random boi
# For python users only
pip install python-dotenv
require('dotenv').config();
console.log(process.env.MY_ENV_VAR);
# install locally (recommended)
npm install dotenv --save
pip install python-dotenv
const config = require('dotenv-config')();
console.log(config.test); // localhost
module.exports = config;
npm install dotenv
npx nodemon -r dotenv/config server.js