Can someone explain me why .env variables are undefined when I print them?
npm i dotenv
logs undefined. I just can't make sense of REPL
well I would just like to say we already have that configured. You don't even need
the reason is that
dotenv can't actually read your
Hi. It would be nice to know how that is implemented. Also, think of it this way: I want to understand, don't want that level of abstraction that makes you useless. Why? this won't work if i implement locally, neither my local would work here. BUT i appreaciate the comment. @Coder100
You shouldn't need the dotenv package.
I created a Repl just now and pasted what you had (minus the require() call) in their respective files, and it worked.