Infinite redirection in Cloudflare Pages

Hello! We have deployed some next.js projects we had in Vercel in Cloudflare. Everything works fine, except when someone accesses a URL by putting a slash / at the end of it. It goes into an infinite loop. Can someone help us? URL that works fine: https://demo.tkting.io/es/club/club-test URL with infinite loop: https://demo.tkting.io/es/club/club-test/ In the next.config.js configuration the "trainlingSlash" is set to false. If we enable it, when entering any route it stays in infinite loop. Thank you very much for your valuable help
2 Replies
kian
kian2y ago
Pages will always have trailing slashes so it's probably Pages fighting a client-side redirect.
Walshy
Walshy2y ago
already posted in #pages-help, closing.
Want results from more Discord servers?
Add your server