Basic Node and Express - Use the .env File

Hi, i dont know what is wrong, i try several diferent options, and the hint its no clear how to do it.

Thanks in advance! Regards.

Your project link(s)

solution: boilerplate-express - Nix (beta) Repl - Replit

Your browser information:

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

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

Link to the challenge:

if (process.env.MESSAGE_STYLE === "uppercase") {
  let response = "Hello World".toUpperCase();
} else {
  let response = "Hello World";
};

Your logic for checking the environment variable needs to be part of your GET callback. The tests work by changing the environment variable while your app is running.