Https://www.freecodecamp.org/learn/back-end-development-and-apis/basic-node-and-express/use-the--env-file

Use the .env file has some problem.
I have the output as suggested by the question. But it is showing the same message again and again saying that the response of the endpoint /json should change according to the environment variable MESSAGE_STYLE.
Please help me. What;s going on?

here is my solution to this problem.
Solution: https://replit.com/@nepCoder/boilerplate-express-3#myApp.js

My browser information:

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

Challenge: Use the .env File

Link to the challenge:

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