I use the redirection by language as the below link.
The nf_lang cookie is as the below.
The content of the _redirection is as the below.
It works fine on Netlify but not in the local environment that I use netlify dev command.
In my local environment, It cannot redirect by the nf_lang, but if I use NEXT_LOCALE cookie it can work fine.
I have netlify login and netlify link like the below link.
The state.json file exists in the .netlify folder and the siteId is set.
My demo site is here.
My demo code on GitHub is here.
It works fine on the Netlify platform but not on the local machine when using netlify dev.
How can I make the netlify dev environment is the same as the Netlify platform?