import { getPayload } from 'payload'; import configPromise from '../payload.config'; async function inspectStart() { const payload = await getPayload({ config: configPromise }); const result = await payload.find({ collection: 'pages', where: { slug: { equals: 'start' } }, locale: 'de' }); if (result.docs.length > 0) { const doc = result.docs[0]; console.log('Start Page:', doc.title); console.log('Excerpt:', doc.excerpt); // Print block types in content if (doc.content?.root?.children) { const blocks = doc.content.root.children.filter((n: any) => n.type === 'block'); console.log('Blocks found:', blocks.map((b: any) => b.blockType || b.type)); } } else { console.log('Start page not found'); } process.exit(0); } inspectStart();