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)


Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ 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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.