Skip to content

Overview & Quick Start

Payload CMS configuration

@nexload-sdk/payload-preset

v1.1.0 Released

Examples 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.

Terminal window
pnpm 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.

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.

Optimization

Agent usage