@auth/sveltekit! I have the same issue
@auth/sveltekit! I have the same issue on cf pages functions.
3 Replies
I added the nodejs_compat flag in the functions settings both envs, but builds still fail
The issue comes from authjs, which uses those node libraries. I really want to stay with cloudflare over vercel
GitHub
Support Node Compat in Cloudflare Adaptor · Issue #10028 · sveltejs...
Describe the problem Cloudflare announced Connect to PostgreSQL and it can provide database access from Cloudflare Workers, which combined with SvelteKit would be very powerful: https://developers....
Looks like the new version of cf adaptor is now supported node compat
https://github.com/sveltejs/kit/pull/11672
GitHub
feat: support compatible node modules without prefixes by Rich-Harr...
This is a companion to #10544. Cloudflare workers let you import from node:path, but not from path. This is annoying to fix if you're not the one writing the import (i.e. it's in a dependen...