Jack M
CDCloudflare Developers
•Created by Jack M on 6/10/2024 in #pages-help
Trouble deploying Auth.js with Sveltekit on Cloudflare Pages - `node:crypto`
I was able to solve this by explicitly installing
@auth/core
. For any future searchers, related issue is https://github.com/nextauthjs/next-auth/issues/111845 replies
CDCloudflare Developers
•Created by Jack M on 6/10/2024 in #pages-help
Trouble deploying Auth.js with Sveltekit on Cloudflare Pages - `node:crypto`
Eventually I tracked down this issue from
jose
, which is a library used by auth.js, but it seems to just suggest disabling node compat... which breaks other things 😬5 replies
CDCloudflare Developers
•Created by Jack M on 6/10/2024 in #pages-help
Trouble deploying Auth.js with Sveltekit on Cloudflare Pages - `node:crypto`
Currently, the
vite.config.ts
is fairly stock:
I've tried using resolve:{alias:{}} to try and polyfill it, but I'm not massively familiar with Vite, and that may be more of a sveltekit issue anyway.
The wrangler.toml currently looks like this:
5 replies