Basic Node and Express - Use the .env File

Tell us what’s happening:
Can someone help with the environment variables, It seems they are not loaded. I can’t tell whats really happening, I request for help.
Your project link(s)

solution: https://boilerplate-express-1.jexsie.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Basic Node and Express - Use the .env File

Link to the challenge:

As you are using replit, are you using the secrets tab (instead of creating a .env file)?
It essentially works in exactly the same way as a .env file would.
NOTE: In a .env file you would add a variable as e.g. THIS_VARIABLE=value. In your secrets tab the equivalent is to add the variable name in the key field and the value in value.


(I blocked out my app code and console in case it gives info about following challenges).

yes, I did exactly as you said. I am just confused why the test is failing
But thanks for the Idea