Netlify site name : fleet-website ( 33eacc28-69c3-4174-8c89-de96a682f769 )
I currently have a NextJs project on my account using nextjs’ Locale Detection feature : Routing: Internationalization | Next.js
In my local dev environment, the subdomain redirection works but not on Netlify (preview or prod env).
I have also opened an issue on the plugin’s Github : [Bug]: NextJs localeDetection not working properly · Issue #2034 · netlify/next-runtime · GitHub
Thank you !
clarnx
April 26, 2023, 9:34pm
2
Hi @benjamin-fleet , thanks for the post and welcome.
Kindly check the links below and follow the suggestions there to see if it helps resolves your problem.
The questions asked in the links below is similar to your problem.
Hi all,
I want to use the NEXT_LOCALE cookie to redirect the corresponded language path automatically.
The functionality is described as the below link.
It can not work correctly on Netlify.
It works fine on Vercel.
https://sf1.vercel.app/
You can test the functionality by changing the language selector.
[image]
Test case1:
Choose the Traditional Chinese(zh_TW) 中文(繁體).
Go to the root URL /.
It should show the Traditional Chinese Path: /zh-TW.
The message above the selector will show …
Thanks.