Overview & Quick Start
Payload CMS configuration
@nexload-sdk/payload-preset
v1.1.0 ReleasedExamples follow workspace source. Check pending Changesets against your installed version.
SDK dependencies: @nexload-sdk/logger, @nexload-sdk/persian, @nexload-sdk/payload-fields, @nexload-sdk/payload-hooks
nexloadPreset() composes Persian admin defaults, the SDK logger bridge, after-commit callbacks, field hooks, and collection audit logging. It is ESM only and runs in Node.js Payload configuration.
Installation
Section titled “Installation”pnpm add @nexload-sdk/payload-preset @nexload-sdk/logger payload @payloadcms/translations @payloadcms/ui react react-domnpm install @nexload-sdk/payload-preset @nexload-sdk/logger payload @payloadcms/translations @payloadcms/ui react react-domyarn add @nexload-sdk/payload-preset @nexload-sdk/logger payload @payloadcms/translations @payloadcms/ui react react-dombun add @nexload-sdk/payload-preset @nexload-sdk/logger payload @payloadcms/translations @payloadcms/ui react react-dom@payloadcms/ui, react and react-dom are peer dependencies, because the fields plugin registers admin components.
Quick Start
Section titled “Quick Start”import { configureLogger } from "@nexload-sdk/logger";import { nexloadPreset } from "@nexload-sdk/payload-preset";import { buildConfig } from "payload";
configureLogger({ service: "shop-cms" });export default buildConfig({ // Add db, secret, and collections here. plugins: [...nexloadPreset()],});Configure the logger before buildConfig(). Define collections explicitly, including the auth collection. See guides and the API reference.