Add support for .env files https://nodejs.org/en/blog/release/v20.6.0
To initialize Node.js application with .env file, we need to use the following CLI command:
node --env-file=.env app.js
Hello valued CloudLinux client!
We wanted to let you know that we now have the ability to add environment variables in NodeJS applications before running them.
You can find more information here: https://docs.cloudlinux.com/cloudlinuxos/lve_manager/#edit-application-1.
I hope it is already able to help you.
However, your request is related to loading all environment variables from a JS file.
It’s a really convenient feature, and we are considering it.
We will keep you updated regarding the progress.
Thank you for your input!