Hello there,
This is a known issue: Use the .env File Test Will Not Pass Use the .env File will not pass Basic Node and Express - Use the .env File get error Cannot set headers after they are sent to the client