Example using [Next.js Custom Server](https://nextjs.org/docs/pages/building-your-application/configuring/custom-server) with express. Made from official [examples/custom-server](https://github.com/vercel/next.js/tree/canary/examples/custom-server) from Next.js repository.
17 lines
255 B
TypeScript
17 lines
255 B
TypeScript
import type { CollectionConfig } from 'payload'
|
|
|
|
export const Media: CollectionConfig = {
|
|
slug: 'media',
|
|
access: {
|
|
read: () => true,
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'alt',
|
|
type: 'text',
|
|
required: true,
|
|
},
|
|
],
|
|
upload: true,
|
|
}
|