Basic Node and Express - Use the .env File

Tell us what’s happening:

The response of the endpoint /json should change according to the environment variable MESSAGE_STYLE
// tests completed

###Your project link(s)

solution: https://ffecfe13-77ac-4b72-8362-b50b34a727ec-00-34k0spjh4bsug.kirk.replit.dev

Your browser information:

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

Challenge Information:

Basic Node and Express - Use the .env File

hi, did you have a question for us?

looks like the tricky part here is the MESSAGE_STYLE variable.
The tests want /json to respond differently when it’s set to uppercase.
Double-check that you’re reading it with process.env.MESSAGE_STYLE and changing the message before you send the JSON back.

That’s usually what makes the test pass.