feat: product catalog

This commit is contained in:
2026-03-02 15:41:26 +01:00
parent ec3f2cf8c9
commit e9ceae3989
5 changed files with 439 additions and 241 deletions

14
scripts/inspect-start2.ts Normal file
View File

@@ -0,0 +1,14 @@
import { getPayload } from 'payload';
import configPromise from '../payload.config';
async function main() {
const payload = await getPayload({ config: configPromise });
const result = await payload.find({
collection: 'pages',
where: { slug: { equals: 'start' } },
locale: 'de',
depth: 2,
});
console.log(JSON.stringify(result.docs[0], null, 2));
}
main().catch(console.error);