generated from autonomic-cooperative/astro-payload-template
27 lines
429 B
TypeScript
27 lines
429 B
TypeScript
import { CollectionConfig } from "payload/types";
|
|
|
|
export const Media: CollectionConfig = {
|
|
slug: "media",
|
|
admin: {},
|
|
access: {
|
|
read: (): boolean => true,
|
|
create: () => true,
|
|
update: () => true,
|
|
},
|
|
upload: {
|
|
staticURL: "/media",
|
|
staticDir: "media",
|
|
mimeTypes: ["image/*"],
|
|
},
|
|
|
|
fields: [
|
|
{
|
|
name: "alt",
|
|
type: "text",
|
|
required: true
|
|
},
|
|
],
|
|
};
|
|
|
|
export default Media;
|