Skip to content

How to solve "Large Page Data" issue with Nextjs? #39880

Answered by ijjk
nonoumasy asked this question in Help
Discussion options

You must be logged in to vote

Hi, this warning is specific to the amount of data returned in the props object from getStaticProps, images shouldn't affect this unless they are being serialized and returned inside of props.

To reduce this you should only return the data that is needed to hydrate the page (first render) any additional data can be loaded client-side or on client-transition.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@nonoumasy
Comment options

@gaston-flores
Comment options

@nonoumasy
Comment options

@ryparker
Comment options

@nonoumasy
Comment options

Answer selected by nonoumasy
Comment options

You must be logged in to vote
1 reply
@nonoumasy
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
6 participants