Validating JWT in Cloudflare Pages (CF's tutorial doesn't work when deployed)
I'm following https://developers.cloudflare.com/cloudflare-one/identity/authorization-cookie/validating-json/ (JavaScript). I understand it's for Express, but I've removed the Express parts and adjusted it for SvelteKit to be deployed in Cloudflare Pages. But when deploying I got this error:
According to https://github.com/cloudflare/workers-sdk/issues/3351 and https://community.cloudflare.com/t/possible-to-set-node-compat-on-pages-functions/448593, they're simply not supported.
What should I do?
1 Reply
Updated the question for clarity