Basic Node and Express - Use the .env File

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)

solution: boilerplate-express - Node.js Repl - Replit

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic Node and Express - Use the .env File

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Assuming you have created the necessary environment variable and value in the Secrets section of the replit, you will not pass the challenge until you follow the instructions:

Then, in the /json GET route handler you created in the last challenge access process.env.MESSAGE_STYLE

Currently, you are not accessing process.env.MESSAGE_STYLE when a request to the /json route is made. You are making the request when the app starts and so it remains the same during the tests (which actually change the process.env.MESSAGE_STYLE variable behind-the-scenes.