Skip to content

Conversation

@ramiroazar
Copy link
Contributor

We're using this package on Cloudflare Workers and needed to make the following minor changes to get it working correctly.

  1. Add a couple of Rollup plugins to the form and server configs
  2. Support passing GraphQL endpoint as a prop instead of solely relying on process.env

this allows passing the baseUrl as a prop, instead of relying solely on environment variables in process.env, improving compatibility with other environments besides node
to resolve "process is not defined" error when using package in worker environment

https://gist.github.com/Electroid/7d55c0023fe6ef3277f7c4fe361a58f0#file-rollup-config-js-L48
to resolve "ReferenceError: process is not defined" in Cloudflare Pages
to resolve "ReferenceError: process is not defined" in Cloudflare Pages
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

Successfully merging this pull request may close these issues.

1 participant