{"record":{"id":"7127069cbfdf3c19","repo":"vercel/next.js","slug":"warning-data-for-page-next-data-page-pa","errorCode":null,"errorMessage":"Warning: data for page \"${__NEXT_DATA__.page}\" (path \"${context.dangerousAsPath}\") is ${prettyBytes(bytes)} which exceeds the threshold of ${prettyBytes(largePageDataBytes)}, this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data","messagePattern":"Warning: data for page \"(.+?)\" \\(path \"(.+?)\"\\) is (.+?) which exceeds the threshold of (.+?), this amount of data can reduce performance\\.\nSee more info here: https://nextjs\\.org/docs/messages/large-page-data","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/pages/_document.tsx","lineNumber":880,"sourceCode":"\n      if (largePageDataWarnings.has(__NEXT_DATA__.page)) {\n        return htmlEscapeJsonString(data)\n      }\n\n      const bytes =\n        process.env.NEXT_RUNTIME === 'edge'\n          ? new TextEncoder().encode(data).buffer.byteLength\n          : Buffer.from(data).byteLength\n      const prettyBytes = (\n        require('../lib/pretty-bytes') as typeof import('../lib/pretty-bytes')\n      ).default\n\n      if (largePageDataBytes && bytes > largePageDataBytes) {\n        if (process.env.NODE_ENV === 'production') {\n          largePageDataWarnings.add(__NEXT_DATA__.page)\n        }\n\n        console.warn(\n          `Warning: data for page \"${__NEXT_DATA__.page}\"${\n            __NEXT_DATA__.page === context.dangerousAsPath\n              ? ''\n              : ` (path \"${context.dangerousAsPath}\")`\n          } is ${prettyBytes(\n            bytes\n          )} which exceeds the threshold of ${prettyBytes(\n            largePageDataBytes\n          )}, this amount of data can reduce performance.\\nSee more info here: https://nextjs.org/docs/messages/large-page-data`\n        )\n      }\n\n      return htmlEscapeJsonString(data)\n    } catch (err) {\n      if (isError(err) && err.message.indexOf('circular structure') !== -1) {\n        throw new Error(\n          `Circular structure in \"getInitialProps\" result of page \"${__NEXT_DATA__.page}\". https://nextjs.org/docs/messages/circular-structure`\n        )","sourceCodeStart":862,"sourceCodeEnd":898,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/pages/_document.tsx#L862-L898","documentation":"Error \"Warning: data for page \"${__NEXT_DATA__.page}\" (path \"${context.dangerousAsPath}\") is ${prettyBytes(bytes)} which exceeds the threshold of ${prettyBytes(largePageDataBytes)}, this amount of data can reduce performance.\nSee more info here: https://nextjs.org/docs/messages/large-page-data\" thrown in vercel/next.js.","triggerScenarios":"Thrown at packages/next/src/pages/_document.tsx:880 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the page data size (smaller props), or increase `largePageDataBytes` if the size is intentional."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}