How to view and remove erroneous bindings?
In dashboard it only shows 1 secret, as expected. Seems like there's a phantom unwanted env binding but I can't access or delete using wrangler/dash

4 Replies
Based on the wrangler deployment error, I would expect to see two conflicting keys in here?

What I've tried:
- in dash, deleting the var and then re-adding from wrangler pages secret put
Getting
Failed to publish your Function. Got error: Uncaught Error: MONGODB_URI environment variable is
not set
despite a successful delete and re-add of the variable from wrangler
Just bumped into this limitation after hard coding the mongo env var and getting new errors. Anyone have suggestions or if I wanna use Mongo (raw driver, Prisma, etc) then Cloudflare Pages isn't the right place to host? https://alexbevi.com/blog/2024/09/11/why-cloudflare-workers-dont-work-with-mongodb/
ALEX BEVILACQUA
Why Cloudflare Workers Don’t Work With MongoDB
Cloudflare Workers is a great platform for deploying serverless JavaScript code, but has historically never supported raw sockets. In May of 2023 they announced support for a connect() API which allows TCP Sockets to be created within Workers, but is not a direct replacement for Node.js’ net.Socket API.