24 lines
525 B
TypeScript
24 lines
525 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
import { collectionLevelConfigSlug } from '../shared.js'
|
|
|
|
export const CollectionLevelConfig: CollectionConfig = {
|
|
slug: collectionLevelConfigSlug,
|
|
admin: {
|
|
description: "Live Preview is enabled on this collection's own config, not the root config.",
|
|
useAsTitle: 'title',
|
|
livePreview: {
|
|
url: 'http://localhost:3000/live-preview',
|
|
},
|
|
},
|
|
access: {
|
|
read: () => true,
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'title',
|
|
type: 'text',
|
|
},
|
|
],
|
|
}
|