Use of Replit in dotenv

Tell us what’s happening:
I’m not sure how to pass the response variable to the json nav

solution: boilerplate-express - Replit

Your browser information:

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

Challenge: Use the .env File

Link to the challenge:

process.env['MESSAGE_STYLE'] needs to be evaluated inside the route handler as the test will change the value of the variable (so it needs to get re-evaluated inside the route handler).

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