Cant successfully complete the challenge using .env variables

I have also added MESSAGE_STYLE=uppercase to .env file in glitch

var response = "";
app.get("/json", (req, res) => {
  if (process.env.MESSAGE_STYLE == "uppercase") {
    response = "Hello json".toUpperCase();
  } else {
    response = "Hello json";
  }
  res.json({ message: response });
});

Your browser information:

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

Challenge: Use the .env File

Link to the challenge:

How about sending the GET request yourself ? You can see what your code really does. You could also console.log process.env.MESSAGE_STYLE to check it really is what you think it is.

Hello there,

Please note: Glitch has been unstable, for the past few weeks, and the Basic Node and Express challenges have undergone breaking changes. We are aware of this, and are working to resolve this: https://github.com/freeCodeCamp/freeCodeCamp/issues/39095

Some things you can do:

  1. Use another platform: CodeSandbox, Repl.it, or similar, to fork the GitHub boilerplate.
  2. Skip these challenges

Hope this helps