Everything works as expected, but once the image is served through Next's image component I get a 400 error.
Interestingly though, it works fine in preview deployments.
In other words: mydemo.vercel.app shows a 400 error for images, while mydemo-grpvbmpkl-myteam.vercel.app shows the image as it should.
Tried updating my next.config.mjs, but it didn't do the trick:
import { withPayload } from '@payloadcms/next/withPayload'
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['mydemo.vercel.app'],
},
}
export default withPayload(nextConfig)
My payload config is similar to https://github.com/payloadcms/vercel-deploy-payload-postgres/blob/main/src/payload.config.ts