Javascript – dotenv not reading variables inside .env file
I'm trying to use dotenv to load the following .env file: PORT=4000 BASE_URL=http://127.0.0.1:${PORT}/ require('dotenv').config('.env') For some reasons, dotenv does not resolve ${PORT} to 4000, instead it just returns a plain string like this: { parsed: { PORT: '4000', BASE_URL: 'http://127.0.0.1:$PORT/',…