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:
|
volumes:
|
||||||
- ./payload/src:/base/src
|
- ./payload/src:/base/src
|
||||||
- ./astro/src/types.ts:/types.ts
|
- ./astro/src/types.ts:/types.ts
|
||||||
|
- ./data/media:/base/dist/media
|
||||||
ports:
|
ports:
|
||||||
- 3001:3001
|
- 3001:3001
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ export const Media: CollectionConfig = {
|
|||||||
staticURL: "/media",
|
staticURL: "/media",
|
||||||
staticDir: "media",
|
staticDir: "media",
|
||||||
mimeTypes: ["image/*"],
|
mimeTypes: ["image/*"],
|
||||||
adminThumbnail: ({ doc }) => `/media/${doc.src}`,
|
adminThumbnail: ({ doc }) => `${process.env.PAYLOAD_URL}/media/${doc.src}`,
|
||||||
},
|
},
|
||||||
|
|
||||||
fields: [
|
fields: [
|
||||||
|
Loading…
Reference in New Issue
Block a user