-
I assume you followed the steps in MongoDB Atlas Tutorial – How to Get Started already?
-
Did you add the connection string to the Secrets (environment variables) section? Not sure how replit handles .env files created after they got deprecated but I would suggest you try using the interface for adding the connection string and not the .env file.