Server Action Body Size Limit does not apply in production environment #77505
Replies: 4 comments 4 replies
-
Does that action pass? We have a similar issue, but from the opposite side. We have set a limit, yet despite this limit, the server action goes through, and this error serves more as a log. |
Beta Was this translation helpful? Give feedback.
-
Hi @renato-viasoft, Did you get it working ?
But still have same error message on production |
Beta Was this translation helpful? Give feedback.
-
We ran into the same issue for our deployed Docker container. But when we used |
Beta Was this translation helpful? Give feedback.
-
Hi, I’m facing the same issue even after applying the recommended configuration from the official Next.js documentation. The 1 MB body size limit still persists in the production environment, despite setting the bodySizeLimit parameter to 30 MB in the next.config.js file. Has anyone been able to identify the cause of this behavior or found a workaround? Thanks in advance for the help! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a server action that uploads a file to an OCI Object Storage.
The file can be up to 256Mb
I added the configuration to next.config.mjs as stated in the documentantion
But i still have the following log in my application
I am at a loss of what to do.
For instance, this is my Dockerfile
And this is my package.json
I'd love to receive some help in this matter.
Beta Was this translation helpful? Give feedback.
All reactions