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

Johannes-Andersen commented Oct 27, 2021 • edited Loading

  • 👍 5 reactions

@Johannes-Andersen

FrontLeejonghun commented Oct 27, 2021 • edited Loading

Sorry, something went wrong.

Johannes-Andersen commented Oct 27, 2021

Frontleejonghun commented oct 27, 2021.

  • 👍 2 reactions

@bbigras

starburst997 commented Oct 27, 2021

@bbigras

bbigras commented Oct 27, 2021

  • 👍 4 reactions
  • 👍 8 reactions

@vitormv

vvenv commented Oct 28, 2021

@nicosh

nicosh commented Oct 29, 2021 • edited Loading

@timneutkens

shuding commented Oct 30, 2021

  • 🚀 2 reactions

Johannes-Andersen commented Oct 31, 2021

@timneutkens

balazsorban44 commented Jan 27, 2022

@vercel

No branches or pull requests

@bbigras

IMAGES

  1. PPT

    error experimental.server components required experimental.appear to be enabled

  2. PPT

    error experimental.server components required experimental.appear to be enabled

  3. PPT

    error experimental.server components required experimental.appear to be enabled

  4. PPT

    error experimental.server components required experimental.appear to be enabled

  5. PPT

    error experimental.server components required experimental.appear to be enabled

  6. PPT

    error experimental.server components required experimental.appear to be enabled

VIDEO

  1. Experimental Error

  2. Data Fetching with React Server Components

  3. How to enable EXPERIMENTAL MODE on REALMS & SERVERS

  4. Error Experimental

  5. Fix RivaTuner Statistics Server "Some System Components Cannot be Hooked Right Now" Error

  6. Uncertainty and Errors in Experiments