This commit is contained in:
@ -27,6 +27,7 @@ import Media from '@payload/collections/Media'
|
||||
import Authors from '@payload/collections/Authors'
|
||||
import Posts from '@payload/collections/Posts'
|
||||
import Users from '@payload/collections/Users'
|
||||
import Pages from '@payload/collections/Pages'
|
||||
|
||||
const filename = fileURLToPath(import.meta.url)
|
||||
const dirname = path.dirname(filename)
|
||||
@ -40,28 +41,7 @@ export default buildConfig({
|
||||
},
|
||||
},
|
||||
editor: lexicalEditor(),
|
||||
collections: [
|
||||
Users,
|
||||
Posts,
|
||||
Authors,
|
||||
Media,
|
||||
{
|
||||
slug: 'pages',
|
||||
admin: {
|
||||
useAsTitle: 'title',
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: 'title',
|
||||
type: 'text',
|
||||
},
|
||||
{
|
||||
name: 'content',
|
||||
type: 'richText',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
collections: [Users, Posts, Authors, Media, Pages],
|
||||
secret: process.env.PAYLOAD_SECRET || '',
|
||||
typescript: {
|
||||
outputFile: path.resolve(dirname, 'types/payload-types.ts'),
|
||||
|
Reference in New Issue
Block a user