-
-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with next-i18next and deployment on Vercel #1940
Comments
You may open/reference this issue in the Vercel / Next.js repo. -> vercel/next.js#40130 |
Hello - having the same issues here. Posted on Vercel discussion: vercel/next.js#40099 |
Could this be the reason? vercel/nft#304 |
Setting |
Hi, could you confirm if you have |
Reverts #304 (partially) There are too many corner cases that rely on the old behavior such as #307 so unfortunately we have to revert. - Fixes #307 - Related to i18next/next-i18next#1940 - Related to https://stackoverflow.com/questions/73554073/bug-with-next-i18next-and-deployment-on-vercel-recently
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Provide environment information
How are you deploying your application?
Vercel
Bug Description
Context
We encountered a bug around next-i18next that resulted in serverless crashes for catch-all routes. We noticed this bug for the first time Monday around 14:00 CET and think it is potentially related with a change in the serverless runtime/filestructure as older deployments that used to work stoped working when redeploying.
Some other people also seemed to have encountered the same bug. See also here:
What we tried
So we upgraded our versions of next and next-i18next (like some of the other people did).
With the most recent next.js and next-i18next versions translations seem to work only in very specific cases.
We created a minimal replicable deployment (Repo) where we prebuild two pages via putting them in
getStaticPaths
:Both pages do not use translations when opening them directly.
However, when first navigating to the index.js and then clicking on of the links the two pages use proper translation.
Note: The translations will break upon refresh.
Setup Description
Expected Behavior
working Translations
Links to Reproduce
Example repo here: https://github.com/everdropde/ed-i18n-bug
Example Vercel Deployment: https://ed-i18n-bug.vercel.app/de
Steps To Reproduce
The text was updated successfully, but these errors were encountered: