You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm trying to migrate to the app router - currently all pages in my app use the pages router.
I tried out the examples for app router and pages router individually and they worked. If I combine them however (which is required to do a gradual migration), things break.
I either run into a multiple redirect issue (when the locale is part of the url), or the locale detection does not seem to work.
Describe the solution you'd like
A minimal example you can provide to use app router and pages router simultaneously with next-intl would be useful.
Describe alternatives you've considered
I've searched for a possible solution within the next-intl docs , github issues on the next-intl repo, and stackoverflow, but have not found anything.
The text was updated successfully, but these errors were encountered:
Sounds good! I'll close this ticket for the time being then, since we already have an example and the new docs will feature it more prominently. In case something doesn't work as expected, feel free to open a new issue!
amannn
changed the title
Documentation/Example needed: Using Pages and App router simultaneously with next-intl
Example: Incremental adoption of App Router from Pages Router with next-intl
Oct 31, 2024
Is your feature request related to a problem? Please describe.
I'm trying to migrate to the app router - currently all pages in my app use the pages router.
I tried out the examples for app router and pages router individually and they worked. If I combine them however (which is required to do a gradual migration), things break.
I either run into a multiple redirect issue (when the locale is part of the url), or the locale detection does not seem to work.
Describe the solution you'd like
A minimal example you can provide to use app router and pages router simultaneously with next-intl would be useful.
Describe alternatives you've considered
I've searched for a possible solution within the next-intl docs , github issues on the next-intl repo, and stackoverflow, but have not found anything.
The text was updated successfully, but these errors were encountered: