create
Creates a Payload CMS configuration by specifying required properties like admin, auth, collections, and database settings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| admin | Yes | ||
| auth | Yes | ||
| bin | Yes | ||
| blocks | Yes | ||
| collections | Yes | ||
| compatibility | Yes | ||
| cookiePrefix | Yes | ||
| cors | No | One of the allowed types | |
| csrf | Yes | ||
| custom | Yes | ||
| db | Yes | ||
| debug | Yes | ||
| defaultDepth | Yes | ||
| defaultMaxTextLength | Yes | ||
| editor | Yes | Function expression (e.g., "({ req }) => req.user.role === 'admin'") | |
| No | One of the allowed types | ||
| endpoints | Yes | ||
| globals | Yes | ||
| graphQL | Yes | ||
| hooks | Yes | ||
| i18n | Yes | I18nOptions configuration object | |
| indexSortableFields | Yes | ||
| jobs | Yes | ||
| localization | No | One of the allowed types | |
| logger | Yes | any configuration object | |
| loggingLevels | Yes | ||
| maxDepth | Yes | ||
| onInit | Yes | Function expression (e.g., "({ req }) => req.user.role === 'admin'") | |
| plugins | Yes | ||
| routes | Yes | ||
| secret | Yes | ||
| serverURL | Yes | ||
| sharp | Yes | Function expression (e.g., "({ req }) => req.user.role === 'admin'") | |
| telemetry | Yes | ||
| typescript | Yes | ||
| upload | Yes | any configuration object |