Next.js images return 500 error in production

Solution 1:

It looks like GAE (Google App Engine) does not allow for writing, you can read them but its probably trying to perform some transcoding in the request, e.g: convert to svg

One potential way maybe to host the images in an external URL or use a host like imgix or cloudinary

https://nextjs.org/docs/api-reference/next/image#domains