node:crypto not supported (in cloudflare pages)

Hey everyone, I am on cloudflare pages project with sveltekit and during build I get error of node:crypto not supported and the workaround or fix for now is to use node_compatibility flag, it works but should not it work without these flags? Also the PR for this case was merged : https://github.com/better-auth/better-auth/pull/456

Where am I going wrong? I have a plain project with better-auth setup (latest version)
Was this page helpful?