Replies: 1 comment
-
Hi! Were you able to fix the problem? I have the same problem! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here is my folder structure-
on
i18n.ts
then
middleware.ts
So it working and redirecting like-
http://en.localhost:3001/en
It is well documented on - https://next-intl-docs.vercel.app/docs/routing/middleware#domain-based-routing
But I want only sub domain redirect like-
So, here I add this line on createMiddleware-
localePrefix: 'never'
Then it is not working, it is not redirecting to
en.localhost:3001
Please help me, anyone!!
Beta Was this translation helpful? Give feedback.
All reactions