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.
1 Reply
Claire Mahoney
Claire Mahoney•2d ago
Hi Marek. Looks like Daniel may have picked this up in Slack where you posted it as well. If it's okay with you, we will answer in Slack (where there is additional info) and leave this thread.

Did you find this page helpful?