Basic Node and Express - Use the .env File

Tell us what’s happening:
I don’t understand why this isn’t passing. It generates the intended result every time.

Your project link(s)
solution: https://boilerplate-express.eldorr.repl.co/

Your browser information:

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

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

Link to the challenge:

I don’t know why it’s not passing for you. I forked your repl and then added the MESSAGE_STYLE variable to the Secrets tab and it passed for me.
I presume you’ve added the variable to your Secrets tab?

Thank you for your reply.
The problem seems to have been that I set the variable holding the text “Hello json” outside of the handler. Since I defined the variable in the handler, the test executes sucessfully.

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