import type { CollectionConfig } from 'payload' import { pagesSlug } from '../shared.js' export const Pages: CollectionConfig = { slug: pagesSlug, labels: { singular: 'Page', plural: 'Pages', }, admin: { useAsTitle: 'title', }, versions: { drafts: true, }, fields: [ { name: 'title', label: 'Title', type: 'text', required: true, }, { name: 'excerpt', label: 'Excerpt', type: 'text', }, ], }