import type { CollectionConfig } from 'payload' export const VersionedPostsCollection: CollectionConfig = { slug: 'versioned-posts', versions: { drafts: true, }, fields: [ { name: 'text', type: 'text', }, { name: 'number', type: 'number', }, { name: 'array', type: 'array', fields: [ { name: 'text', type: 'text', }, ], }, { name: 'blocks', type: 'blocks', blocks: [ { slug: 'test', fields: [ { name: 'text', type: 'text', }, ], }, ], }, ], }