feat: payload cms
This commit is contained in:
14
scripts/check-start.ts
Normal file
14
scripts/check-start.ts
Normal 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();
|
||||
Reference in New Issue
Block a user