SvelteKit service bindings in local development
I am trying use a service binding in a serverside function SvelteKit, however it can't be reached during local development, even when running both with
wrangler dev
. After deployment, it works.
[wrangler] Couldn't find 'wrangler dev' session for service "backend-worker" to proxy to
https://github.com/magicalpuffin/public-debug/tree/main/2024/cloudflare-pages-service-binding1 Reply
I think I figured out the issue, I was trying to run using
npx wrangler pages dev -- npm run dev
which was deprecated today.
https://github.com/cloudflare/cloudflare-docs/commit/1fe2be60c755f0747e5b804a9f21bd1b3d2d8b79