Next.js Discord

Discord Forum

Truncated JSON responses in Vercel

Unanswered
Cane Paratore posted this in #help-forum
Open in Discord
Cane ParatoreOP
data.json requests in vercel are being returned truncated at ~450 character mark which causes the page to crash every time.

It works perfectly built locally it's only in Vercel that issues arise.

These seems to have happened before - see this discussion: https://github.com/orgs/vercel/discussions/3291

Does anyone know how to fix this?

Example:
(this can also be reproduced by going https://www.deutschdictionary.com and looking up any word)

{
    "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"
                }
            ],
            "exampleS

0 Replies