keystatic icon indicating copy to clipboard operation
keystatic copied to clipboard

Randomly deletting images from my blog

Open BlazWebDevelopment opened this issue 11 months ago • 0 comments

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

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

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.

BlazWebDevelopment avatar Jan 31 '25 14:01 BlazWebDevelopment