0

For some reason I can't set the environment variables on my node js app. I am currently trying to use dotenv package to set my environment variables and I put a log statement in the config() method to print out the processes.env variable and it looks like it adds the variables correctly. However, once I'm back in my index.js when my app runs, logging the process.env only shows the following environment variables:

NODE_ENV : "development"
PUBLIC_URL : ""

I've tried just about everything. Why can't I set the environment variables for my node app?

rockzombie2
  • 2,835
  • 4
  • 16
  • 20

0 Answers0