Skip to content

Dsable the API Routes Response Size Limited warning #36011

Answered by ijjk
italodeandra asked this question in Help
Discussion options

You must be logged in to vote

Hi, it sounds like you are looking for the below config, which is documented here https://nextjs.org/docs/api-routes/api-middlewares#custom-config

export const config = {
  api: {
    responseLimit: '8mb',
  },
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@winner106
Comment options

@italodeandra
Comment options

@jurgen-siegel
Comment options

Answer selected by italodeandra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants