typescript client in cloudflare workers
I was using wmill typescript client from my cloudflare workers but it stopped working today:
I think that the commit that broke this is https://github.com/windmill-labs/windmill/pull/3714/files#diff-13bcd4e9fc2a785250e31b9122dbedeacc95fe47601feeb1169a0da8c84917a6R8
Before this commit, the lookup in the env was not performed in case the
setClient
method was called, and in CF Workers, process
is not something that exists
Do you have a workaround to make wmill typescript client work from Cloudflare workers ?7 Replies
we would just need to check for the existence of process
This is probably the right fix: https://github.com/windmill-labs/windmill/pull/3807/files
but need to check a few things to confirm it works in all runtimes
could you check that works well in the cf runtime?
I have tested locally (using wrangler, so it should be as close as possible to the real runtime), and globalThis?.process is indeed working
great thanks, I just have to test it works well with bun,deno,nodejs and nativets and will merge
By working I mean not crashing anymore. But I can't test other runtime right now
š
thanks for the report!