Absolute screenshotPaths generate in .slicemachine/libraries-states.json

Hi,

the paths to the screenshots for the slices are referenced in .slicemachine/libraries.-states.json, but slicemachine uses absolute paths in the JSON.

e.g.:

"screenshotPaths": {
  "default-slice": {
    "path": "/Users/xxx/yyy/src/slices/CallToAction/default-slice/preview.png",
    "width": 300,
    "height": 50
  }
}

This is problematic for us, as we commit this directory and of course not all of our developers share the same root filesystem :slight_smile:

Is there any configuration option to use relative paths?

Thanks in advance for any hints!

Best regards,
Adrian

1 Like

Hello @adrian.marte

Thanks for reaching out to us.

I am not sure if we can configure a relative path instead of an absolute one. I have passed this query to my SM team. I will let you know once I get a response from them.

Thanks,
Priyanka

Hello @adrian.marte

I have received an update from the SM team. They have already discussed it, and this is their priority to implement. But I don't have an ETA.

Thanks,
Priyanka

1 Like