Olutunmbi Banto
Oct 16, 2021

Thanks Sahil for your comments.

Environment variables, keys or credentials should not be in your source code or committed to git. You should create them in a separate .env file and add that `.env` file to your `.gitignore` file. Pull it in with process.env.KEY_NAME

Then on heroku, open the app > Settings > Config Vars. Add each key to your heroku and your app will pick it up from there.

I hope this helps .

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Olutunmbi Banto
Olutunmbi Banto

Written by Olutunmbi Banto

Software Engineer — Building mobile and web applications with Node, React, Angular, PHP | Cloud| ALC Mentor and Facilitator at Andela | Tech Writer at @itnex_io

Responses (1)

Write a response