@zedtech/zedkit-payload-seo
Validate editor-entered title/description lengths
@zedtech/zedkit-payload-seo — beta
beta
At a glance
- Who: Payload developers who want editors warned before over-long titles ship.
- What: Friendly max-length validators and constants for SEO titles and descriptions.
- Use when: On every editor-entered SEO text field.
- Avoid when: For hard truncation at render time — use
resolveDescriptionfrom@zedtech/zedkit-seoinstead. - See also: Add a localized SEO tab to a Payload collection, Derive descriptions, slugs, and localized fields
Install
pnpm add @zedtech/zedkit-payload-seoLatest: 0.1.2 (via changesets).
Example
import { SEO_TITLE_MAX, maxLengthValidator } from "@zedtech/zedkit-payload-seo";
validate: maxLengthValidator(SEO_TITLE_MAX)
// true when fine, friendly message when overWraps: (none)