Thanks Thiago, nice tutorial. I notice your code doesn't have 'require('dotenv').config()' or the npm package install in the instructions??
Am I missing something, are you using some native way of reading the .env file, thanks!
Alan
Hi Alan, thank you.
I am not using a .env file here, I am only using the process.env variables, assuming that the additional custom variables would be defined on the server.
Thanks Thiago,
I think I see what happened, I'm connecting to a db on Mongo Atlas and copied a line of code from another project!! Thanks for looking, cheers.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks Thiago, nice tutorial. I notice your code doesn't have 'require('dotenv').config()' or the npm package install in the instructions??
Am I missing something, are you using some native way of reading the .env file, thanks!
Alan
Hi Alan, thank you.
I am not using a .env file here, I am only using the process.env variables, assuming that the additional custom variables would be defined on the server.
Thanks Thiago,
I think I see what happened, I'm connecting to a db on Mongo Atlas and copied a line of code from another project!! Thanks for looking, cheers.
Alan