Skip to content

Payload Suite Overview

PackageResponsibility
Payload SchemaCanonical field definitions and validation projected to Payload and Zod.
Payload FieldsSemantic field factories and Admin UI, backed by Persian utilities.
Payload EditorLexical features and editor presets.
Payload OperationsTyped custom operation contracts, endpoints, and clients.
Payload HooksCollection audit hooks and structured events.
Payload PresetTop-level configuration composition for Persian defaults, logging, field hooks, and audit hooks.
Payload RevalidatePer-transaction cache revalidation hooks and Next.js route handler.
SEOSEO 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.

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.