Kinde + next-intl - redirect not working on Cloudflare
Hey, I ran again into weird issue on Cloudflare
I am using Kinde + next-intl. Locally - all working as expected. On Vercel - all worked.
On Cloudflare: i18n itself - works ok. Kinde itself - works ok (login is working etc) For protected paths, when Kinde is ran and i18n middleware is returned from onSuccess, I can see in logs that middleware returned the response like 307 with locale attached at the end, but for some reason, even though I see in Kinde logs it is returning that response from i18n ('onSuccess returned response..."), on Cloudflare it ens up without redirect happening. I am debugging it for like 4 hours and cannot find the reason.