I am using the env file though
on line 34 inside my if statement I cal process.env also there is an env file located underneath the views folder with the variable assigned. I didn’t see any env files when I started this assignment so I created my own. Is there another one somewhere that I should use?
The .env file is used to setup the environment of the project, what’s going to be used to, for example, access the database (storing secrets/passwords and users). Every developer must create their own .env files for a NodeJS app, otherwise process.env will try to find the variables from the current environment (the shell, the windows environment variables, etc.). So, this:
I am starting to think that freecode camp is testing for a very specific solution and that even though mine works it’s not the solution that they are looking for