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/check-start.ts 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' }, locale: { equals: 'de' } },
limit: 1,
});
console.log(JSON.stringify(existing.docs[0].content, null, 2).slice(0, 1500));
process.exit(0);
}
run();