Use the .env File - Not sure what to do

Tell us what’s happening:
Keep getting this result:
The response of the endpoint /json should change according to the environment variable MESSAGE_STYLE

And yes I know some people already made a forum about this, and they found the solution, but I tried them and that didn’t work for me.
Below me is the link to my code, any help would be appreciated srry for being a noob

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0.

Challenge: Use the .env File

Link to the challenge:

Hello and welcome to the freeCodeCamp community~!

You have the .env file inside your /views folder. The .env file should be in the root directory of your project to work correctly.

Thank You for the help!

1 Like