sveltejs / kit

web development, streamlined
https://svelte.dev/docs/kit
MIT License
18.72k stars 1.94k forks source link

Ability to have allow Cloudflare Adapter emulation to remotely proxy bindings #11990

Open saturnonearth opened 7 months ago

saturnonearth commented 7 months ago

Describe the problem

With the recent addition of the CF bindings emulation in the cloudflare-adapter, it would be great if there was some way to enable the ability to connect/proxy remotely to your CF bindings. I originally thought this was what the emulation meant, but realized it is only local emulation.

As an example, I was previously using https://github.com/chientrm/wrangler-proxy to connect to my R2 bucket so I could work with the same content locally, and in staging/development.

This is important to me because I am using R2 for storage, but a separate service for a database, and need them to stay in sync. If I was using only CF services, this would not be as much of an issue.

Describe the proposed solution

Implement some way to enable "remote" access to Cloudflare bindings instead of local for specific bindings. I am not sure if this is possible in this project, but I thought I would ask as it would be very useful to me for development.

Importance

would make my life easier

eltigerchino commented 7 months ago

Related https://github.com/cloudflare/workers-sdk/issues/5105