I switched from using Static IPs to VPC peering to connect to my MongoDB cluster and for some reason after an application restart in my Prod Env it won’t connect anymore. I tried restarting my Staging app and it’s working fine.
error: MongooseServerSelectionError: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://docs.atlas.mongodb.com/security-whitelist/