feat: payload cms

This commit is contained in:
2026-02-26 01:32:22 +01:00
parent 1963a93123
commit 7d65237ee9
67 changed files with 3179 additions and 760 deletions

14
scripts/test-rich-text.js Normal file
View File

@@ -0,0 +1,14 @@
import { getPayload } from 'payload';
import configPromise from '@payload-config';
async function run() {
const payload = await getPayload({ config: configPromise });
const existing = await payload.find({
collection: 'pages',
where: { slug: { equals: 'start' } },
limit: 1,
});
console.log('Homepage blocks found:', existing.docs[0].content?.root?.children?.length);
process.exit(0);
}
run();