Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare support #18

Open
mderrick opened this issue Jul 15, 2024 · 3 comments
Open

Cloudflare support #18

mderrick opened this issue Jul 15, 2024 · 3 comments
Assignees

Comments

@mderrick
Copy link

mderrick commented Jul 15, 2024

I can't get this to run on Cloudflares runtime as it depends on a few node api's. Is there anything on the road map to make this work in those environments?

My quick preliminary look at solving this shows that the dependency graphql-parse-resolve-info uses assert and also the use of Buffer here. Once these are removed/replaced I seem to be able to have some success.

@Sukairo-02 Sukairo-02 self-assigned this Jul 16, 2024
@Sukairo-02
Copy link
Collaborator

Doesn't this work with node_compat: true?

@PietervdWerk
Copy link

No it does not, the import is different for the cloudflare node compact polyfill
https://developers.cloudflare.com/workers/runtime-apis/nodejs/#built-in-nodejs-runtime-apis

@rawkode
Copy link

rawkode commented Sep 26, 2024

I've just deployed this to Cloudflare Workers with nodejs_compat and it's working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants