Docs: Update Server Actions Docs (#59080)
- [x] Rename page from `forms-and-mutations` to `server-actions-and-mutations` to account for examples that don't use forms. - [x] Split `/pages` and `/app` content to make easier to edit - [x] Add Security Section - [x] Recommend tainting - [x] Closures and encryption - [x] Overwriting encryption keys - [x] CSRF protection | Allowed Origins - [x] Add examples for Server Actions being called outside forms - [x] `useEffect` - [x] Event handlers - [ ] ~3rd party libraries~ - [x] More form examples - [x] Add note on calling actions in `<button>` and `<input> ` - [x] Add `.bind` example | Recommend bind over hidden input field - [x] Recommend `try/catch` for error handling - [x] Create `serverActions` next.config.js page - [x] Document `allowedOrigins` - [x] Document `bodySizeLimit` - [x] Add note on Server Actions flag for < v14 - [x] Update error message links - [x] Remove Server Actions from API reference as it's a React feature. E.g. We don't have API references for Server Components. - [ ] Set up redirects: --------- Co-authored-by:Lee Robinson <me@leerob.io> Co-authored-by:
Shu Ding <g@shud.in> Co-authored-by:
Michael Novotny <manovotny@gmail.com>
Showing
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment