So I’m pretty sure the .env challenge is simply not working.
With replit - this stupid ‘secrets’ thing they have going on is just bad:
Every variable I try to get from there (obviously I create it first) is simply undefined.
It doesn’t matter if I do process.env.VAR_NAME or process.env[‘VAR_NAME’] like their code-completion/insertion thing suggests - ALL VARIABLES ARE NOT WORKING AND ARE ‘UNDEFINED’.
So after HOURS of trying to work with replit with no success, I tried with Glitch.
Which is actually working! yay! I get different messages in my /json path according to the MESSAGE_STYLE variable!
But… it seems freeCodeCamp doesn’t recognize it…
I made sure that it actually changes according to the env var and yet no response from freeCodeCamp.
Please, it’s like a 3 minute challenge that I already passed (technically) - what can I do now? is there a bug with this challenge?
I am not sure what you are experiencing in Replit, as I cannot replicate any issues. Also, I am not sure what your Glitch code is, but with the code you linked to there is an issue: