How do get Cloudflare bindings in dev?
I am struggling to access my Cloudflare bindings in devleopment using Solid Start. I created the project using
create-cloudflare
.
This works when running pnpm preview
, but returns undefined
when running in dev (vinxi dev
). I suspect there might be a bug in Vinxi or maybe I have to add something to my dev command?
Does anyone have experience with this?3 Replies
Hi, this issue might be useful: https://github.com/cloudflare/workers-sdk/issues/5912
GitHub
🚀 Improve the SolidStart Cloudflare (bindings) integration · Issue ...
Describe the solution Summary People deploying their SolidStart applications to Cloudflare Pages do not have a proper DX when it comes to accessing Bindings, it would be great if we could find a so...
Thank you, @Tommypop !
Sorry to drag up an old post, has this improved at all? I followed Ryan's guide here: https://ryanjc.com/blog/solidstart-cloudflare-pages/
but it just wasn't working locally (I tried D1 and R2).
Deploying SolidStart to Cloudflare Pages
Deploying SolidStart (Nitro) to Cloudflare Pages