Files
ipal-kit/dist/modules/seo/injectAutoFillMeta.d.ts
T
2026-08-03 12:24:28 +02:00

12 lines
493 B
TypeScript

import type { Config } from 'payload';
import type { SeoOption } from './types.js';
/**
* Injects the auto-fill meta hook into every SEO-enabled collection.
*
* Runs after @payloadcms/plugin-seo has added the meta group, appending a
* beforeChange hook that fills empty meta from document content. Existing
* hooks are preserved (plugin hook runs last, so editor input and other hooks
* win first).
*/
export declare function injectAutoFillMeta(config: Config, seo: SeoOption): Config;