Basic Node and Express - Use the .env File get error Cannot set headers after they are sent to the client

I had the same issue, the lesson is bugged.