Dsable the API Routes Response Size Limited warning #36011
Answered
by
ijjk
italodeandra
asked this question in
Help
-
Hey guys. Is it possible to disable the warning for https://nextjs.org/docs/messages/api-routes-body-size-limit ? I am self-hosting my Next.js app and I don't care about the size limit and I also disabled the |
Beta Was this translation helpful? Give feedback.
Answered by
ijjk
Apr 8, 2022
Replies: 1 comment 3 replies
-
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',
},
} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
italodeandra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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