EN

@core / kit-cms

1.0.3 ▾
verifiedMIT
GitHub

Self-managed website kit for Next.js: /admin to edit pages with blocks, media, menus, settings, forms and users

Code39 filesContext~2K tokensscan passed

The exact tree that will be injected, after .genpmignore. Pinned to

src/app/(cms)/_templates/genpm/search.tsread-only · e44820b
// Qué se indexa en la búsqueda del sitio.
import { blocksToText } from '@/lib/blocks';
import { contentSearchSource } from '@/lib/content';
import type { BlockInstance } from '@/lib/blocks';
import { toPlainText } from '@/lib/rich-text';
import { registerSearchSource } from '@/lib/search';
import { blocks } from './blocks';
import { pagePath } from './content';

registerSearchSource(
  contentSearchSource('pages', {
    path: pagePath,
    text: (d) => blocksToText(d.blocks as BlockInstance[], blocks, (doc) => toPlainText(doc as never)),
  }),
);

Report @core/kit-cms

Sign in with GitHub to report a package.