Trouble making an .env

Tell us what’s happening:
I am having an issue with creating an .env file inside of for the challenge.

Your code so far
app.get("/json", (req, res) => {
res.json({“message”: process.env.MESSAGE_STYLE == “uppercase” ? “HELLO JSON”: “Hello json”})

Your browser information:

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

Challenge: Use the .env File

Link to the challenge:

Welcome there,

In the lesson instructions:

Note: If you are using Replit, you cannot create a .env file. Instead, use the built-in SECRETS tab to add the variable.

If you are still stuck, I suggest the Replit docs for more information.

Hope this helps


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