Hello everyone, I couldn’t submit the answer for .env file Task. I was trying to figure out a solution for a while. I saw similar posts regarding to this problem. But I was not able to find out a solution for myself. Below I have attached replit link.
You can’t check the value of the environment variable in the global space. If you do this, then your application cannot respond to changes in the environment between API calls. You need to check the current value of this environment variable inside of your app.get() method.
Try forking your own project (use the three dots in the list of projects, i.e. “My Repls” section). Re-add the environment variable, and try the submit again.
Some people for whatever reason have issues with replit. BTW, I too pass the test when I fork your code, so it should be passing.