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?