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
Can't find i18n folder when deploying via @zeit/Now #462
Comments
Duplicate of #274. |
I've got the same problem |
@DutchPrince I do not have knowledge about now the now platform abstracts filesystems. I would welcome any PRs. Alternatively, you can consume your localisation content via network requests with any number of |
Thanks for your response! What does PRs mean? |
Pull requests. This is open source software and relies upon contributions from the community. |
Excuse me guys I probably have searched for every thread that is related to this but I can't find a way to tell the server what is the path to the locales... I didn't find anything helping me in the said duplicate #274. I am also using vercel, did anyone manage to make it work with next-i18next ? My locales are located in public/static/locales But when I deploy I got this path as not found /var/task/public/static/locales/en' I noticed that once deployed the structure on vercel has no public/ I know that "/public/static/locales" is the default i18n path, so I tried to change it to /static/locales so it will fit the vercel structure. So I set localePath to "static/locales" Then is does not deploy anymore and I got this as a path not found... ****/vercel/7d248d1f/static/locales/en' I tried also the backEnd config option without success... I am out of idea. Help :'( |
@Chill-Studio This issue needs to be resolved by the Vercel team, and they're aware of it: vercel/next.js#13624 |
Wo that's a fast answer thank you ! Arg I can see there is not workaround :( |
At the moment, the best "workaround" is to use a different serverless platform. |
Is there any other platforms recommend? |
@limebear The issue has been resolved. Vercel is probably your best option. |
@Chill-Studio did you found how to resolve this error? Can you help me please? |
Thanks for this! |
@isaachinman I am experiencing the same issue but for dynamic routes like |
@samiulhsohan You need add the path of your locale files
|
@musps It worked! Thanks! |
I have fixed in my case with this config:
developed on Vercel i still have problems on Netlify |
Change is inspired by a problem I encountered after deploying my app to vercel and getting server errors for being unable to resolve the file locations for my locales. Solution was provided by @musps in [i18next#462 (comment).
I think this issue is back in recent versions (I'm on 13.2.2). I get a warning:
And it still works locally, but not in Vercel. |
I think you need to move
Not sure where it's documented but it worked for me. |
here: https://github.com/i18next/next-i18next#vercel-and-netlify |
Describe the bug
Tried to deploy
examples/simple
to now but failed to run.Occurs in next-i18next version
V1.0.0
Steps to reproduce
Expected behaviour
it should run successfully on now platform
Screenshots
The text was updated successfully, but these errors were encountered: