I am currently using the dotenv library in my nodejs project, and reactjs project.
I have a .env file that works perfectly when I have values like the following
PORT=80
API_URL=https://api.com:8080
However, I am trying to make my os environment variables available in this file, for example if I have the following in my .bashrc file:
DATABASE_HOST=localhost
DATABASE_PASSWORD=password
Is it possible to print the os environment variables in the .env file? Something similar to Spring boot application.properties file like
NODEJS_DB_HOST=${DATABASE_HOST}
Any help is appreciated