No way to avoid ReplicaSetNoPrimary errors

Also hitting the same issue on Vercel. Really driving me nuts. Anyone ever figure this out?