mongodb #2721
Replies: 9 comments 26 replies
-
@xofyarg reported an issue on the unenv repo which @pi0 fixed. It should be integrated in unenv with cloudflare/workers-sdk#6920 |
Beta Was this translation helpful? Give feedback.
-
it's been forever now... I can't remember when I encountered this the first time but it must be at least 2 years ago. thanks! |
Beta Was this translation helpful? Give feedback.
-
I saw the thread on the forum which says that the only problem is that workers don't support TLS |
Beta Was this translation helpful? Give feedback.
-
I've started a new Mongodb instance, and I can't use it with my Cloudflare workers; I want to use a Cloudflare environment with queues, kv, etc., but I can't use it if workers don't actually work... |
Beta Was this translation helpful? Give feedback.
-
December 6th |
Beta Was this translation helpful? Give feedback.
-
How can one use mongodb on Workers, now that node:net is merged? |
Beta Was this translation helpful? Give feedback.
-
As promised, here is an update: workerd now implements wrangler 3.106 which was just released contains the latest version of Meaning that you should be able to use Please test and report your experiences! 🙏 edit: You need to use the I have tested with: # wrangler.toml
compatibility_date = "2024-12-05"
compatibility_flags = ["nodejs_compat"] |
Beta Was this translation helpful? Give feedback.
-
/cc @alexbevi ☝️ |
Beta Was this translation helpful? Give feedback.
-
The
mongodb
does not work even withnode_compat_v2
on.It can be imported, but it does not properly connect to a DB. The package relies on
net.Socket
andtls.TLSSocket
.See Issue for more context: cloudflare/workers-sdk#6684
See Blog for more context: https://alexbevi.com/blog/2024/09/11/why-cloudflare-workers-dont-work-with-mongodb/
Beta Was this translation helpful? Give feedback.
All reactions