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'm using next-intl for translation and as per examples it works perfectly fine. But as soon I deploy it on vercel my website return 500 | Internal server error and nothing shows up. After debugging I found out if I use cookies from next/headers that's what causing the issue. As soon I use js-cookie or use localstorage to store selected language language doesn't change as it returns always the old value or default value which is en. It doesn't work on both enviroments.
I'm debugging this issue from past 4 days. Any help will be much appreciated. I'm using next-intl without I18n routing.
Verifications
I've verified that the problem I'm experiencing isn't covered in the docs.
Description
Greetings everyone.
I'm using next-intl for translation and as per examples it works perfectly fine. But as soon I deploy it on vercel my website return 500 | Internal server error and nothing shows up. After debugging I found out if I use cookies from next/headers that's what causing the issue. As soon I use js-cookie or use localstorage to store selected language language doesn't change as it returns always the old value or default value which is en. It doesn't work on both enviroments.
I'm debugging this issue from past 4 days. Any help will be much appreciated. I'm using next-intl without I18n routing.
Verifications
Mandatory reproduction URL
https://abc-landing-page.vercel.app/
Reproduction description
it's strange as it's working on development but giving 500 | internal server error
Expected behaviour
Should work on deployment url as well.
The text was updated successfully, but these errors were encountered: