Basic Node and Express - Use the .env File

Tell us what’s happening:
Hi there! I got stuck on this challenge… cant comprehend why if logic doesnt work to solve the challenge. I google some other threads but still struggling. Guess something wrong using the Secrets, because basic logic is okay, i tried to put in some obvious statement… Thanks in advance

Your project link(s)

solution: boilerplate-express - Node.js Repl - Replit

Your browser information:

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

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

Link to the challenge:

When I go to https://boilerplate-express.andreypashinsky.repl.co/json , I get the message {"message":"Hello json"}. Have you set MESSAGE_STYLE to “uppercase” in replit?


Yeah, I have got the same message all the time. I have set it like this. I have also tried value with “”, it doesn’t work
If I put truthy statement as a condition, it will get me the correct message in uppercase.

Thanks, guys. It works! It was the first time I asked for help there, and you are amazing. Hope, you are doing well.

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