Files
payload/test/uploads/collections/Upload2/index.ts
2023-09-01 14:45:41 -04:00

26 lines
469 B
TypeScript

import path from 'path'
import type { CollectionConfig } from '../../../../packages/payload/src/collections/config/types'
export const Uploads2: CollectionConfig = {
slug: 'uploads-2',
upload: {
staticDir: path.resolve(__dirname, './uploads'),
},
admin: {
enableRichTextRelationship: false,
},
fields: [
{
type: 'text',
name: 'title',
},
],
}
export const uploadsDoc = {
text: 'An upload here',
}
export default Uploads2