Tell us what’s happening:
My answer is correct. I have also checked the hint, it is the same. Still it is not accepting my answer, I have been trying this for last two days.
###Your project link(s)
solution: https://freecodecam-boilerplate-stprsu9d3k1.ws-us115.gitpod.io
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Challenge Information:
Basic Node and Express - Use the .env File
require(“dotenv”).config();
let express = require(‘express’);
let app = express();
app.get(“/json”,(req,res)=>{
if(process.env.MESSAGE_STYLE === “uppercase”){
res.json({“message”: “HELLO JSON”})
}else{
res.json({“message”: “Hello json”})
}
})
module.exports = app;
Where did you place the .env file?
on the root directory. It gives me the correct answer, but Freecodecamp does not accept it.
it also happens with other problem statements.
I’m facing this issue from last 6 to 7 days i don’t know why its suddenly stopped accepting all my submissions .
Post the content of your .env
file.
Or post a GitHub repo (with the .env file committed so we can check it).