Facing MongoServerSelectionError during Pages dev build

I’m using Next 13.5.3 and my Pages dev build is failing.

I assumed it was due to the need to IP allowlist on MongoDB Atlas (since I’m connecting to that in my app), so I added all the IPv4 addresses in [https://www.cloudflare.com/en-gb/ips/](https://www.cloudflare.com/en-gb/ips/) to the allowlist but to no avail.