19 lines
800 B
TypeScript
19 lines
800 B
TypeScript
import type { Plugin } from 'payload';
|
|
import type { SeoOption } from './types.js';
|
|
type BuildSeoPluginArgs = {
|
|
seo: SeoOption;
|
|
/** Upload collection slug for the meta image (typically 'media'). */
|
|
uploadsCollection?: string;
|
|
};
|
|
/**
|
|
* Configures @payloadcms/plugin-seo from IPAL's SeoOption.
|
|
*
|
|
* Adds the `meta` field group (title, description, image) to the client's
|
|
* chosen collections. tabbedUI is intentionally NOT used — it merges tabs by
|
|
* inspecting the first field, which breaks when other plugins/fields (roles,
|
|
* slug) already sit in the collection, leaving an empty SEO tab. Instead the
|
|
* SEO UI fields are injected into a controlled tab by injectSeoTabs.
|
|
*/
|
|
export declare function buildSeoPlugin({ seo, uploadsCollection }: BuildSeoPluginArgs): Plugin;
|
|
export {};
|