-
Notifications
You must be signed in to change notification settings - Fork 27.8k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Addressing "API Routes Response Size Limited to 4MB" Error in Next.js #55589
Comments
Should not have been closed #55589
### What? Continues #55525 Adding filtering for repro validation checks ### Why? #55589 should not have been closed ### How? balazsorban44/nissuer@ecbf8b4
what is the solution or workaround for app router ? |
Bumping this up as there still doesn't seem to be a solution even though app router is the new standard. When I try to build with this in my export const config = {
api: {
responseLimit: '5mb',
},
} I get this error:
However, https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config doesn't any any options for setting the api response limit. What is the solution / workaround for app router? |
This comment has been minimized.
This comment has been minimized.
Seems that in app router you have to do: const nextConfig = {
experimental: {
serverActions: {
bodySizeLimit: '15mb'
}
}
} in the next.config.js file |
is it solved??? |
looking for a solution as well |
just use |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What is the improvement or update you wish to see?
"Addressing "API Routes Response Size Limited to 4MB" Error in Next.js" does not seem to apply to App Router, although App Router has been selected.
Is there any context that might help us understand?
Is there another solution for the App Router? Then please add it to this document.
Does the docs page already exist? Please link to it.
https://nextjs.org/docs/messages/api-routes-response-size-limit
The text was updated successfully, but these errors were encountered: