Replies: 1 comment
-
This exists with the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When
fields.image
is used inside afields.array
object the path to the image key that is used for the image folder path is the index of the array.Keystatic is smart enough to also move the images and update the data when the array order is changed.
However, this results in git commits where images are replace over and over whenever the order is changed.
This could be prevented, if the image folder path where to use something else than the array index.
One option would be, to use the array object slug field when such a field is present in the config.
https://keystatic.com/docs/fields/image
https://docsmill.dev/npm/@keystatic/[email protected]#/.fields.image
Beta Was this translation helpful? Give feedback.
All reactions