I am trying to prepare my app for production on a ubuntu running nginx. I have been using the dotenv npm package during development, but need a more stable and secure method for production. I have added the variables to /etc/environment because I would like them to exist in the app permanently.
Can someone explain to me how to access them from my server.js file?
I have tried using process.env.variable and $variable but neither seem to work.