This is log from deployment, same for every media request
[16:17:50] [31mERROR[39m: [36mENOENT: no such file or directory, stat '/vercel/path0/public/media/zz-hero-home-300x149.png'[39m
err: {
"type": "Error",
"message": "ENOENT: no such file or directory, stat '/vercel/path0/public/media/zz-hero-home-300x149.png'",
"stack":Hey
@338085139433127946,
So, you've deployed your app to Vercel, very nice, but it looks like you're trying to use the local filesystem to store images. This won't work, and Payload (depending on what version you're on) should've generated some warnings for you.
The issue is that serverless providers don't really have a concept of a local filesystem in the traditional sense.
It's ephemeral
To fix this, you need to use a storage-adapter to store your images somewhere for later consumption:
https://payloadcms.com/docs/upload/storage-adaptersLooking at it. Thanks a lot.
It's my pleasure
Star
Discord
online
Get dedicated engineering support directly from the Payload team.