Mongoose Probelm - pls help ;-;
why do i keep getting that error, trying to fix from many hours now
6 Replies
i am using the wrangler cloudflare thing, it did work on normal nodemon, but im trying to put it in production now
You cannot connect to MongoDB from Cloudflare Workers except via MongoDB Atlas Data API (their hosted service).
and iirc atlas uses a self-signed certificate, which won't work either :/
Yeah sorry I should have been more clear - specifically the Data API on Atlas.
Directly connecting to the DB won't work.
https://github.com/patrick-kw-chiu/mongo-http.js/
leaving this here ;)
GitHub
GitHub - patrick-kw-chiu/mongo-http.js: A thin wrapper on Mongodb A...
A thin wrapper on Mongodb Atlas Data API using native fetch API - patrick-kw-chiu/mongo-http.js