heyo
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
This commit is contained in:
parent
0d20e7f738
commit
e48b0d1afe
@ -16,6 +16,7 @@ services:
|
||||
volumes:
|
||||
- ./payload/src:/base/src
|
||||
- ./astro/src/types.ts:/types.ts
|
||||
- ./data/media:/base/dist/media
|
||||
ports:
|
||||
- 3001:3001
|
||||
|
||||
|
@ -12,7 +12,7 @@ export const Media: CollectionConfig = {
|
||||
staticURL: "/media",
|
||||
staticDir: "media",
|
||||
mimeTypes: ["image/*"],
|
||||
adminThumbnail: ({ doc }) => `/media/${doc.src}`,
|
||||
adminThumbnail: ({ doc }) => `${process.env.PAYLOAD_URL}/media/${doc.src}`,
|
||||
},
|
||||
|
||||
fields: [
|
||||
|
Loading…
Reference in New Issue
Block a user