Can't use client in non-node environments because of "node:url" import and `process.env`
johtso opened this issue · comments
Not sure if there might be other things?
Currently working on projects that are deployed to cloudflare workers and I get an error when trying to build my app.
Edit:
The usage of process.env
also is node specific
managed to get things working by just hacking around with the files in node_modules.
The tricky thing about the Cloudflare workers environment is that secrets are not in a global variable, but instead in an env object that is passed to your function.
I guess there would need to be some api for specifying the api key at runtime?
Fixed in a previous version! 📦
process.env
issue not yet resolved
Since 1.9.0 the client is compatible with Cloudflare worker.