Merge branch 'feature/excel' into feature-ai-search, resolve conflicts
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 1m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m11s
Build & Deploy / 🚀 Deploy (push) Successful in 45s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m2s
Build & Deploy / 🔔 Notify (push) Successful in 2s
All checks were successful
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Successful in 1m28s
Build & Deploy / 🏗️ Build (push) Successful in 4m11s
Build & Deploy / 🚀 Deploy (push) Successful in 45s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 4m2s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
30
scripts/inspect-start.ts
Normal file
30
scripts/inspect-start.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
Reference in New Issue
Block a user