hallo
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
bf16b2b010
commit
0d20e7f738
@ -2,10 +2,6 @@ import { CollectionConfig } from "payload/types";
|
||||
|
||||
export const Media: CollectionConfig = {
|
||||
slug: "media",
|
||||
labels: {
|
||||
singular: "Bild",
|
||||
plural: "Bilder",
|
||||
},
|
||||
admin: {},
|
||||
access: {
|
||||
read: (): boolean => true,
|
||||
@ -15,10 +11,16 @@ export const Media: CollectionConfig = {
|
||||
upload: {
|
||||
staticURL: "/media",
|
||||
staticDir: "media",
|
||||
|
||||
mimeTypes: ["image/*"],
|
||||
adminThumbnail: ({ doc }) => `/media/${doc.src}`,
|
||||
},
|
||||
fields: [],
|
||||
|
||||
fields: [
|
||||
{
|
||||
name: "alt",
|
||||
type: "text",
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default Media;
|
||||
|
12
tsconfig.json
Normal file
12
tsconfig.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"include": ["*.ts"],
|
||||
"exclude": ["node_modules"],
|
||||
"references": [
|
||||
{
|
||||
"path": "./astro/tsconfig.json"
|
||||
},
|
||||
{
|
||||
"path": "./payload/tsconfig.json"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user