[Slice machine] Sync screenshots

Context

We have one git project for our slices, customTypes shared to N prismic project.
To automatically push our changes throw all our projects, we create a script.

That script create, update and delete customTypes, Slices and ...Screenshot

Describe your question/issue in detail

We decied to host our screenshot ourself due to the complexity of the project.

When the sync is finished and when I open our slicemachine. I observe some review changes

When I compare locale model.json and remote model.json. Object are the same.

Locale:

{
  id: 'blog_list',
  type: 'SharedSlice',
  name: 'BlogList',
  description: 'BlogList',
  variations: [
    {
      id: 'default',
      name: 'Default',
      docURL: '...',
      version: 'initial',
      description: 'Default',
      imageUrl: 'https://cdn.--.fr/prismic/screenshots/BlogList/screenshot-default.png'
    }
  ]
}
``
Remote:
`
{
  id: 'blog_list',
  type: 'SharedSlice',
  name: 'BlogList',
  description: 'BlogList',
  variations: [
    {
      id: 'default',
      name: 'Default',
      docURL: '...',
      version: 'initial',
      description: 'Default',
      imageUrl: 'https://cdn.--.fr/prismic/screenshots/BlogList/screenshot-default.png'
    }
  ]
}

How may I resolve my issue ?

1 Like

That’s expected, in Slice Machine checks for local screenshot files, so even if the URL matches, it still sees a diff if the file’s not there.

Totally makes sense to host them yourself though, if you use the same structures for different projects. I can mark this as a feature request

Thanks for your quick answer.

Yeah should be great. In fact, I didn't find any tool to sync screenshots the way you do when click on push.

1 Like

I agree, a built-in option for auto syncing screenshots would be super helpful