AntiPattern
Edge Runtime DB Access Mismatch
edge-runtime-mongodb-access-mismatch
A recurring runtime-environment mismatch where middleware/Edge code attempts MongoDB access (often via Mongoose), but Edge runtime incompatibilities force failures that only surface after enabling middleware. Fix by moving DB work to Node runtime.