mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
docs: bodySizeLimit measures raw HTTP body (#94137)
Started from https://github.com/vercel/next.js/discussions/93989 Noticed we even have a test helper to account for overhead: https://github.com/vercel/next.js/blob/fa4c0def823447e75366153690abeda79c7c4ec2/test/e2e/app-dir/actions/account-for-overhead.js#L1-L11 Let's document that the flag controls the raw http body size, overhead + data
This commit is contained in:
@@ -39,6 +39,8 @@ module.exports = {
|
||||
}
|
||||
```
|
||||
|
||||
The limit applies to the raw HTTP request body, including the bytes that `multipart/form-data` adds for boundaries, part headers, and field metadata. If you expect uploads close to the configured value, leave some room for this overhead. For typical multipart uploads, an additional 10–20 KB is a reasonable rule of thumb.
|
||||
|
||||
## Enabling Server Actions (v13)
|
||||
|
||||
Server Actions became a stable feature in Next.js 14, and are enabled by default. However, if you are using an earlier version of Next.js, you can enable them by setting `experimental.serverActions` to `true`.
|
||||
|
||||
Reference in New Issue
Block a user