Open Eusebiotrigo opened 7 months ago
I have deployed the example for the app router in https://next-international-cloudflare.pages.dev/ and the code is in https://github.com/Eusebiotrigo/next-international-cloudflare
I'd just like to know if this is because of the library (certainly not...) or because of cloudflare's edge-runtime.
Thread in CF Discord: https://discord.com/channels/595317990191398933/1232710382762852352
Describe the bug I have a language switcher like:
And it does in fact switches the language adding the /en or /de in the placeholder /:locale.
But when I navigate to any other URL in the webapp, the language goes back to the default...
The middleware that I have is:
All this works in my local instance on my laptop (works on my machine (TM)), but when I deploy the application to Cloudflare Pages, using their @cloudflare/next-on-pages, it behaves as the described behaviour.
About (please complete the following information):
Additional context I know that we need to use the runtime edge for the applications deployed on Cloudflare Pages.
I'd be happy to add a video, or building a minimun reproducible project (will take me some more time).