#Imagens not rendering in production

4 messages · Page 1 of 1 (latest)

ashen moat
#

Every image media that I seeded is not working in produciton. (Have site on Vercel)

In Payload admin shows like error.
In Vercels Logs error 500
My next configs is:
const nextConfig = {
images: {
unoptimized: true,
localPatterns: [
{
pathname: '/api/media/file/**',
},
],
},
}

Might the problem is here but in local, dev or build (local db or remote db) is working well.. only in "remote" that's not working..

ancient valve
#

Hey @ashen moat if you're hosting your app on Vercel, you'll need to host your images elsewhere because Vercel uses an ephemeral file system. e.g blob storage, or payload cloud storage plugin (s3, etc)

fleet bearBOT