Payload Suite Overview
| Package | Responsibility |
|---|---|
| Payload Schema | Canonical field definitions and validation projected to Payload and Zod. |
| Payload Fields | Semantic field factories and Admin UI, backed by Persian utilities. |
| Payload Editor | Lexical features and editor presets. |
| Payload Operations | Typed custom operation contracts, endpoints, and clients. |
| Payload Hooks | Collection audit hooks and structured events. |
| Payload Preset | Top-level configuration composition for Persian defaults, logging, field hooks, and audit hooks. |
| Payload Revalidate | Per-transaction cache revalidation hooks and Next.js route handler. |
| SEO | SEO fields, settings global, public dates and redirects for Payload; metadata, sitemap and robots for Next.js. |
The preset does not define or change collection fields. Use Payload Schema and Payload Fields for fields, and keep collection definitions, access control, and business rules in the application.
Recommended configuration
Section titled “Recommended configuration”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()],});Call configureLogger() before buildConfig(). Declare collections explicitly, including the auth collection, to audit them. The preset includes payloadFieldsPlugin and auditPlugin; avoid registering them twice. Enable read auditing only when needed. See the preset guide and audit guide.