herenickname
Explore posts from serversCDCloudflare Developers
•Created by herenickname on 2/19/2025 in #workers-help
How to create a binding TS types from RPC worker?
https://developers.cloudflare.com/workers/runtime-apis/bindings/service-bindings/#example--build-your-first-service-binding-using-rpc
Following this typescript example,
wrangler types
creates an interface Env
with type WORKER_B: Fetcher
. This leads to bad typing when I want to call WORKER_B.add()
. How this can be improved?6 replies
Several commands at once
command
contains 15 large iptables commands that I want to execute on my local machine. When using the exec()
function from the npm:ssh2
package, everything works, but Deno.command
returns stderr File name too long (OS error 36)
I tried calling /bin/sh
and passing the command as an argument, but the error doesn't change. How can I avoid this?2 replies