pages dev with Wrangler, I can see you can pass KV/R2 etc. but what about service bindings?fetch (server-side, using SvelteKit) but naturally in production I need to use a service binding, any ideas?platform being empty locally in SvelteKit problem--kv=FOO when starting pages dev it'd be set in platform?/foo as I'm using IttyRouter to route API requests in the worker). Is that... possible? I find it weird it wouldn't be as you wouldn't be able to have composable "microservices" otherwise https://rawr.co/foo. The hostname doesnāt matter, unless your Service does something with itnodejs_compat from the cloudflare pages dashboad?development, and your Pages.dev domain is project.pages.dev, your Branch Alias would be development.project.pages.dev.pages devpages devplatformplatform--kv=FOO// /src/hooks.server.ts
import { dev } from '$app/environment';
export const handle = ({ event, resolve }) => {
if (dev) {
// We fake the platform for local development.
event.platform ??= {
env: {
PHOTO_SERVICE: {
fetch(input, init) {
const req = new Request(input, init);
return fetch(input, req)
}
}
},
};
}
return resolve(event);
};https://rawr.co/foodevelopmentproject.pages.devdevelopment.project.pages.dev