Search code examples
javascriptnode.jsheroku

How to set env variable in Heroku with Node.js?


How to set env variable Heroku with Node.js? I opened Heroku account but unable to find out the possible solution to set my env variables up.


Solution

  • Go to your deployed app settings. Then, in "config vars" section click on "Reveal Config Vars" button and you can enter env variables there, which will be also available in your application

    Like this: enter image description here