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 = {
|
export const Media: CollectionConfig = {
|
||||||
slug: "media",
|
slug: "media",
|
||||||
labels: {
|
|
||||||
singular: "Bild",
|
|
||||||
plural: "Bilder",
|
|
||||||
},
|
|
||||||
admin: {},
|
admin: {},
|
||||||
access: {
|
access: {
|
||||||
read: (): boolean => true,
|
read: (): boolean => true,
|
||||||
@ -15,10 +11,16 @@ export const Media: CollectionConfig = {
|
|||||||
upload: {
|
upload: {
|
||||||
staticURL: "/media",
|
staticURL: "/media",
|
||||||
staticDir: "media",
|
staticDir: "media",
|
||||||
|
|
||||||
mimeTypes: ["image/*"],
|
mimeTypes: ["image/*"],
|
||||||
|
adminThumbnail: ({ doc }) => `/media/${doc.src}`,
|
||||||
},
|
},
|
||||||
fields: [],
|
|
||||||
|
fields: [
|
||||||
|
{
|
||||||
|
name: "alt",
|
||||||
|
type: "text",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
export default Media;
|
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