Is there any edge sub-dependency problem work-around?
I have been using Cloudflare Pages for my deployments, sometimes Vercel depending on the project, but I haven't self-hosted anything for a while now. For my current Nuxt project, I rely on MongoDB as a database, but MongoDB doesn't seem to be Edge-compatible due to some dependencies. Deployments are therefore not running on Edge, but I would hate to develop the project without Cloudflare Pages. Apart from small projects like https://github.com/drivly/mongo-fetch, are there any other workarounds to deal with such problems? At MongoDB I have already tipped in Edge support as a feature request, but so far this has met with little interest. I'm not really familiar with all this Edge stuff, occasionally Node.js features caused problems, but that works quite well now and these stress-free deployments with previews directly from GitHub were an absolute luxury compared to my AWS EC2 instances before... Maybe there is some kind of solution and I just don't know it, at least I hope so 😅
2 Replies
Here is the error. It is caused by "@aws-sdk/credential-providers" which is a sub-dependency of the MongoDB driver for Node apps and I havent found a work-around or any alternative way to bring my deployments back to work while still using MongoDB in my Nuxt app
Seems like MongoDB is waiting for Support vom Cloudflare to implement that currently. https://www.mongodb.com/community/forums/t/cloudflare-workers-integration-is-now-possible/226708/13
MongoDB Developer Community Forums
Cloudflare Workers integration is now possible
@Alex_Bjorlig the challenge for the moment is that with only mTLS available we cannot provide our own TLS certificate/key to the socket layer. This prevents us from being able to support connections to MongoDB Atlas clusters. We’ll continue to work with Cloudflare on proper TLS support though, and share updates as they become available.