Replies: 1 comment 6 replies
-
You can use a replace-plugin in your build pipeline for your worker like https://www.npmjs.com/package/@rollup/plugin-replace |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using Solid Start which is the Coolest Solid.js SSR framework with Cloudflare Workers. As We all know Cloudflare Workers don't support Node.js built-ins like process & in Dev Mode, it works fine but after compiling the Project I find process.env.NODE_ENV !== 'production' 13 places in the compiled code, which makes deploying to Cloudflare Workers to Fail.
Why is urql/core depends on process.env.NODE_ENV, because it can run on browsers.
Is there an solution for these? Or I have to Delete process.env.NODE_ENV !== ''production' always after compiling the Project.
Beta Was this translation helpful? Give feedback.
All reactions