Update .gitignore and Media collection configuration
This commit is contained in:
parent
bb54d5e30c
commit
7244fb1d53
1
payload/.gitignore
vendored
1
payload/.gitignore
vendored
@ -3,3 +3,4 @@ node_modules/
|
|||||||
yarn.lock
|
yarn.lock
|
||||||
build
|
build
|
||||||
dist
|
dist
|
||||||
|
src/media
|
@ -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 |
Loading…
Reference in New Issue
Block a user