Using App Router
Features available in /app
Using Stable Version
serverActions
Options for configuring Server Actions behavior in your Next.js application.
allowedOrigins
A list of extra safe origin domains from which Server Actions can be invoked. Next.js compares the origin of a Server Action request with the host domain, ensuring they match to prevent CSRF attacks. If not provided, only the same origin is allowed.
bodySizeLimit
By default, the maximum size of the request body sent to a Server Action is 1MB, to prevent the consumption of excessive server resources in parsing large amounts of data, as well as potential DDoS attacks.
However, you can configure this limit using the serverActions.bodySizeLimit option. It can take the number of bytes or any string format supported by bytes, for example 1000 , '500kb' or '3mb' .
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 .
Was this helpful?
Navigation Menu
Search code, repositories, users, issues, pull requests..., provide feedback.
We read every piece of feedback, and take your input very seriously.
Saved searches
Use saved searches to filter your results more quickly.
To see all available qualifiers, see our documentation .
- Notifications You must be signed in to change notification settings
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement . We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build app in 12.0.1 with concurrentFeatures enabled #30424
Johannes-Andersen commented Oct 27, 2021 • edited Loading
- 👍 5 reactions
FrontLeejonghun commented Oct 27, 2021 • edited Loading
Sorry, something went wrong.
Johannes-Andersen commented Oct 27, 2021
Frontleejonghun commented oct 27, 2021.
- 👍 2 reactions
starburst997 commented Oct 27, 2021
bbigras commented Oct 27, 2021
- 👍 4 reactions
- 👍 8 reactions
vvenv commented Oct 28, 2021
nicosh commented Oct 29, 2021 • edited Loading
shuding commented Oct 30, 2021
- 🚀 2 reactions
Johannes-Andersen commented Oct 31, 2021
balazsorban44 commented Jan 27, 2022
No branches or pull requests
IMAGES
VIDEO