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
I followed the docs in tutorial about localized pathnames and created the navigation.ts and middleware.ts files accordingly but when testing the localized paths returned 404.
This is covered right at the beginning of the routing page: Shared configuration.
I do agree though that it's currently too easy to provide configuration either only to the navigation APIs or the middleware. I'm working on a small API revamp in #779 that should help with this in the future.
Link to page
https://next-intl-docs.vercel.app/docs/routing#pathnames
Describe the problem
I followed the docs in tutorial about localized pathnames and created the navigation.ts and middleware.ts files accordingly but when testing the localized paths returned 404.
The solution was under the localized pathnames revalidation accordion tab showing that you should add pathnames to next-intl middleware.
It would be more clear if it is shown in the actual section not under a tab
The text was updated successfully, but these errors were encountered: