Passing `environment` to platformProxy(@astro/cloudflare) doesn't work as expected

Please find my setup in the screenshots. I expect to get stag D1 Db to be bound with worker when I run astro dev, but right now non of the d1 db is being detected and bound.
No description
No description
No description
4 Replies
shafu
shafuOP5mo ago
PS: Astro folks told me that they pass platformProxy as is(+ enabled flag) to getPlatformProxy so its the issue with workers SDK
Razboy20
Razboy205mo ago
For the sake of clarity, did Astro folks mention/point to any specific issues on GitHub? Also, I would recommend taking a look and seeing what’s visible on environment variables generally, see whats already there Not sure if you’ve already done this, but check to see if changing wrangler/workers sdk versions affects things
shafu
shafuOP5mo ago
no they asked me to create issue for wrangler sdk i am using latest wrangler
shafu
shafuOP5mo ago
GitHub
fix experimental remoteBindings flag not being properly propagated ...
The changes here address the fact that experimental remoteBindings flag that user can set in their getPlatformProxy call is currently not being properly propagated, causing most of the bindings not...

Did you find this page helpful?