Server Actions "Error: Body exceeded 1mb limit" cannot be resolved since the size is hardcoded to 1mb
.
#51099
Closed
devjiwonchoi
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
Resolved with #51104 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Add configuration options to modify the
bodyParser
size as it used to be available inPage Router
.Reference
Non-Goals
stable
features since the Server Actions are in thealpha
stage at the moment.Background
In
Page Router
, it was able to configure API bodyParser size by configuring thesizeLimit
as follows:Currently, it is hard-coded to
1mb
as you can see here.Proposal
next.config.js
asserverActionsLimit
underexperimental
until theServer Actions
become stable.action-handler.ts
, add a conditional value that gets thestring
value from thenext.config.js
asserverActionsLimit
if valid.UPDATE
I've worked on it and ready to open a PR.
Beta Was this translation helpful? Give feedback.
All reactions