Update .gitignore and Media collection configuration

This commit is contained in:
Max Schmidt 2023-06-06 17:29:03 +02:00
parent bb54d5e30c
commit 7244fb1d53
3 changed files with 2 additions and 2 deletions

1
payload/.gitignore vendored
View File

@ -3,3 +3,4 @@ node_modules/
yarn.lock yarn.lock
build build
dist dist
src/media

View File

@ -12,7 +12,6 @@ export const Media: CollectionConfig = {
staticURL: "/media", staticURL: "/media",
staticDir: "media", staticDir: "media",
mimeTypes: ["image/*"], mimeTypes: ["image/*"],
adminThumbnail: ({ doc }) => `${process.env.PAYLOAD_URL}/media/${doc.src}`,
}, },
fields: [ fields: [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 305 KiB