It seems as though there may have been a regression to this issue: https://github.com/orgs/vercel/discussions/3291
data.json requests in vercel are being returned truncated resulting in invalid JSON responses, which causes the page to crash every time.
It works perfectly running the local build but fails on Vercel. I also tried old preview deployments where my pages were previously working and am experiencing the same issue.
Example: (this can also be reproduced by going https://www.deutschdictionary.com/ and looking up any word using the search bar)
"pageProps": { "enToDe": { "translations": [ { "possiblePrefixes": [], "toLanguage": "de", "examples": [ { "de": "Der Wombat lebt in Australien.", "en": "The wombat lives in Australia.", "id": "98ba1176-9e9b-4338-ac89-8ce7750468cb" } ], "pageViews": 0, "fromLanguage": "en", "partOfSpeech": "noun", "nounGender": "m", "translation": "Wombat", "fromLanguageWord": "wombat", "id": "74177084-1ef1-4f65-8852-d3da0ade746b", "source": "ai", "explanation": "Australian burrowing marsupial" } ], "exampleSSteps to Reproduce
- Go to https://www.deutschdictionary.com
- Look up any word using the search bar
- Look at the JSON data requested in the network tab for that word
- See that it is cut off resulting in invalid JSON