I would look into setting your env variables on the hosting platform.
Here’s the docs for Heroku:
https://devcenter.heroku.com/articles/config-vars