Runtime logs:
[2023-10-18T21:03:13] (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-1-1697662990308'
[2023-10-18T21:03:16] (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-2-1697662995790'
[2023-10-18T21:03:52] (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-3-1697663031864'
[2023-10-18T21:04:25] (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-4-1697663065263'
[2023-10-19T17:07:19] (payload): Error: ENOENT: no such file or directory, unlink '/workspace/tmp/tmp-5-1697735236412'
Media.ts:
import { CollectionConfig } from "payload/types";
import path from "path";
const Media: CollectionConfig = {
slug: "media",
fields: [
{
name: "alt",
type: "text",
required: true,
},
],
access: {
read: () => true,
},
admin: {
group: "Uploads",
},
upload: {
staticURL: "/media",
staticDir: path.resolve(__dirname, "../../../media"),
imageSizes: [
{
name: "thumbnail",
width: 400,
height: null,
position: "centre",
},
{
name: "card",
width: 768,
height: null,
position: "centre",
},
{
name: "desktop",
width: 1440,
height: null,
position: "centre",
},
],
adminThumbnail: "thumbnail",
mimeTypes: ["image/*", "video/*"],
},
};
export default Media;
Does anyone know what could cause this?