Basic Node and Express - Use the .env File

Did you restart the server after the changes ?

This topic might be useful: forum topic