JSON files not found when deploying to vercel #1257
Unanswered
adamsulc98
asked this question in
Q&A
Replies: 1 comment
-
I unfortunately don't see an obvious problem with the code you've provided, sorry :/. Since this works locally, it seems like something is off with the Vercel deployment. I'll move this to a discussion since this is a usage question and not a bug report. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
On localhost, everything works as it is supposed to, but when I deploy the app to vercel, it seems that app cannot find the json files.
The build itself doesnt throw any error, but In console there is this:
So it seems that vercel cannot find json files with translations. The json files are stored in messages folder that is on root.
This is my i18n configuration:
My middleware:
next.config.mjs:
And navigation:
Thank you in advance.
Verifications
Mandatory reproduction URL
https://personal-web-six-roan.vercel.app/cs
Reproduction description
Open console and see the 404 error.
Expected behaviour
The app should be able to load translation files and display pages.
Beta Was this translation helpful? Give feedback.
All reactions