You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
We have set up Keystatic on our website and structured our content folders as shown in the image below:
📂 Folder Structure
However, when making simple text edits via ourpage.com/keystatic and committing the changes, Keystatic randomly deletes images from our repository—specifically the hero-image and various images within the blog folder.
In the commit history, we can see that these images are being removed, even though we never modified or interacted with them:
📉 Commit Showing Deleted Images
Steps to Reproduce
Open ourpage.com/keystatic
Edit any text content and commit the changes
Check the commit history – images are deleted unexpectedly
Expected Behavior
Keystatic should only commit the text changes made in the editor, without deleting any unrelated images.
Actual Behavior
The commit removes images from the blog folder and the hero-image, even though they were not edited.
Has anyone else encountered this issue? Could this be a bug in how Keystatic handles file tracking? Any insights or solutions would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Images Randomly Deleted on Commit in Keystatic
Description
We have set up Keystatic on our website and structured our content folders as shown in the image below:
📂 Folder Structure
![Image](https://private-user-images.githubusercontent.com/103902229/408594325-6f8796c6-d7ba-4e90-a830-ff91b02d6d48.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTA5MDMsIm5iZiI6MTczOTA1MDYwMywicGF0aCI6Ii8xMDM5MDIyMjkvNDA4NTk0MzI1LTZmODc5NmM2LWQ3YmEtNGU5MC1hODMwLWZmOTFiMDJkNmQ0OC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQyMTM2NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTJiNTU0NzEzODczYzQ3Y2Y3MDdhMGJjZTcxOGFiNzNlYzE0NTdmYzVmNGYzYThlOTgzMWE1NTY0ZmNlMTBlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.EuxD3FgqUgtR37H3Jo-pVKdxLtMnfDkd73KfDa9ywes)
However, when making simple text edits via ourpage.com/keystatic and committing the changes, Keystatic randomly deletes images from our repository—specifically the hero-image and various images within the blog folder.
In the commit history, we can see that these images are being removed, even though we never modified or interacted with them:
📉 Commit Showing Deleted Images
![Image](https://private-user-images.githubusercontent.com/103902229/408595141-590e8622-7ded-4e12-bcab-9ee7b343d96d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNTA5MDMsIm5iZiI6MTczOTA1MDYwMywicGF0aCI6Ii8xMDM5MDIyMjkvNDA4NTk1MTQxLTU5MGU4NjIyLTdkZWQtNGUxMi1iY2FiLTllZTdiMzQzZDk2ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQyMTM2NDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00OTJhZGNkNTkwZGRhZTIyY2FjMmQwNzAxYmZlYTA0NjNjNjVhYTFlNTIyOWYyMWZhMWMxODM5NzBiYTgwNjAyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.68Sx0DtkdgpeU-C9jnoMm4a2Q35eQsYntxdzcC-kY94)
Steps to Reproduce
Open ourpage.com/keystatic
Edit any text content and commit the changes
Check the commit history – images are deleted unexpectedly
Expected Behavior
Keystatic should only commit the text changes made in the editor, without deleting any unrelated images.
Actual Behavior
The commit removes images from the blog folder and the hero-image, even though they were not edited.
Environment
Keystatic Version: [ "@keystatic/astro": "^5.0.3", "@keystatic/core": "^0.5.39" ]
Hosting: [ Netlify ]
Repository: [GitHub]
Browser: [Chrome, Brave]
Has anyone else encountered this issue? Could this be a bug in how Keystatic handles file tracking? Any insights or solutions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: