nexus icon indicating copy to clipboard operation
nexus copied to clipboard

using nexus with cloudflare workers

Open Mdev303 opened this issue 3 years ago • 1 comments

Hello , is it possible to use nexus with cloudflare workers ? I got a lot of errors when I tried , is there a setup to follow ?

Mdev303 avatar Dec 30 '22 23:12 Mdev303

While experimenting with this library too, turns out that this library depends relies on Node.JS APIs such as fs and path. https://github.com/graphql-nexus/nexus/blob/main/src/node.ts

Cloudflare Workers do not support these modules, even with nodejs_compat = true. I recommend trying GQTX, which shares similarities with Nexus but is Node.JS free and compatible with Cloudflare Workers. https://github.com/sikanhe/gqtx

aimproxy avatar Jan 04 '24 10:01 aimproxy