rsnext/test/e2e/i18n-preferred-locale-detection/app
JJ Kasper 26de5ca269
Migrate locale redirect handling to router-server (#62606)
This moves the locale redirect handling out of `base-server` as it
shouldn't be handled here and should be at the routing level. This
avoids the duplicate handling with middleware that causes the incorrect
detection/infinite looping. Test case from separate PR was carried over
to prevent regression.

Fixes: https://github.com/vercel/next.js/issues/55648
Closes: https://github.com/vercel/next.js/pull/62435
Closes: NEXT-2627
Closes: NEXT-2628

---------

Co-authored-by: Nourman Hajar <nourmanhajar@gmail.com>
Co-authored-by: samcx <sam@vercel.com>
2024-02-27 16:37:11 -08:00
..
pages Migrate locale redirect handling to router-server (#62606) 2024-02-27 16:37:11 -08:00
middleware.js Migrate locale redirect handling to router-server (#62606) 2024-02-27 16:37:11 -08:00
next.config.js Migrate locale redirect handling to router-server (#62606) 2024-02-27 16:37:11 -08:00