Can't access RPC Service Bindings in local (next dev)
i'm trying to access a Service binding (RPC) in my Next-on-Pages. My wrangler.toml looks like this:
When I call it like this, running
It does not throw this error, indicating that the binding was found, but I get the following warning regarding RPC:
The "Image Search" is defined in my worker like this:
It does work when running
It does not work (and throws the error above) when running
Is it possible to make rpc service bindings work via next dev? Also since my vectorize worker do access Vectorize, it will only work via
When I call it like this, running
next dev: It does not throw this error, indicating that the binding was found, but I get the following warning regarding RPC:
The "Image Search" is defined in my worker like this:
It does work when running
wrangler pages dev .vercel/output/static --service VECTORIZE_WORKER=vectorize-worker --compatibility-flag=nodejs_compat" alongside the service worker running via wrangler devIt does not work (and throws the error above) when running
next devIs it possible to make rpc service bindings work via next dev? Also since my vectorize worker do access Vectorize, it will only work via
wrangler dev --remote which is then further incompatible with this local testing?