[BUG] Broken images link after file import

Hello! I’m writing here because of a problem that we have.
Here’s the step to reproduce it:

  • download the prismic documents via the “Export your documents” functionality
  • upload one of them (containing at least one image) using the “Import your documents” functionality
  • query the document

Expected output:
The image should have the same url as before: https://organization.prismic.io/...path

Actual output:
The image has a different url: https://prismic-io.s3.amazonaws.com/...path

More specifically: We can reproduce this issue using an image field inside a slice.

Here’s the json of the downloaded doc:

Here’s the json of uploaded and downloaded again doc:


That problem is causing us missing images in production. We are trying to understand why doesn’t this new url work on our website, but we also would benefit in knowing how to restore the old urls (except manually replace every image in the cms UI)

Thank you in advance for your support

Hello @alessandro.scandone :slightly_smiling_face:,

My apologies for just responding to this.

Welcome to Prismic community, and thanks for reaching out to us.

I am trying to reproduce this issue on my end, and I will get back to you when I have news on this.

Kind regards,
Racheal.

Hello again, @alessandro.scandone

I was able to reproduce the issue on my end, and I have informed our team about it; if/when the team finds time to look into this, they’ll contact you here.

Kind regards,
Racheal.

Hello Racheal, any news on this?

Is it possible that fetching the images from https://prismic-io.s3.amazonaws.com/... rather than fetching them from *.cdn.prismic.io results in worse performance? Where can we get info about the capabilities of Prismic's CDN?