Basic Node and Express - Use the .env File

My code is correct but it’s doing the opposite of what it is supposed to do

solution: boilerplate-express-3 - Nix (beta) Repl - Replit

Your browser information:

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

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

Link to the challenge:

I don’t see where you did this:

At the top of your myApp.js file, import and load the variables with require('dotenv').config() .

Also, make sure you are entering your env variables for replit. I seem to remember that there was something weird there:

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