ReferenceError: process is not defined (Cloudflare + Sveltekit)

Using BetterAuth in connection with Cloudflare and Sveltekit, brings following error: ReferenceError: process is not defined
This internal error only appears in the deployed Version on Cloudflare and not the local one. Most likely duo using imports like for example the filesystem (fs) which is not nativly supported in Cloudflare.
Was this page helpful?