Basic Node and Express - Use the .env File

my solution is not working can i get any suggestions?

Your project link(s)

solution: boilerplate-express-2 - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

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

Link to the challenge:

It is not working because all you do is return:

{
  message: "Hello json"
}

when the /json route is requested.

You have some code that is commented out. You were on the right track there. You just were not returning the correct value for the message property in the else response.