#Wrong image URL on "Edit image" option

1 messages · Page 1 of 1 (latest)

pearl fable
#

I have custom URL for media on my collection page like this:

  upload: {
    disableLocalStorage: true,
    adminThumbnail: ({ doc }) => {
      if (doc?.filename) {
        return `${process.env.CLOUDFRONT_URL}/${doc.filename}`
      }
      return null
    },
  },

And it works as expected on media collection inside Payload, but when I click on "Edit image" to crop it and adjust the focal point, the image on the editing page gives 404 error as it is not using the custom URL, and instead uses the Payload URL. Where could I adjust this editing page URL?

night roseBOT
pearl fable
#

Or does this feature not work on S3 / CloudFront at all?

pearl fable
#

Bump! I don't need code solution, just someone to point me to the right direction in the docs

odd veldt