Skip to content

Docs: Addressing "API Routes Response Size Limited to 4MB" Error in Next.js #76523

Answered by samcx
lucajung asked this question in Help
Discussion options

You must be logged in to vote

@lucajung A response size limit does not apply to Route Handlers because the response is streamed, unlike API Routes.

We should clarify this in the documentation 👀

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies

This comment was marked as off-topic.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by samcx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #55589 on February 26, 2025 00:59.