Closed zachtil closed 1 year ago
The gatsby cache for plugins works in such a way that this becomes necessary.
Create a Notion doc for this @nilubava @meletj
Process documented in Notion: https://www.notion.so/prismaio/Documentation-931269c0fa8d4068ba109852e11e693b#75b6951738c44528bd18284fa4b93d96
When you are working on screenshots locally, e.g. you create file named
screenshot.png
and add that to an MDX file with one of the image components:![screenshot.png]
<img src="screenshot.png" />
and you then make changes to the screenshot in SnagIt and save, the image in the local dev environment at HTTP://localhost:8000 does not get updated.
For it to get updated, you have to stop
npm run dev
, runnpm run clean
and restartnpm run dev
. Only then can you see the updated version of the screenshot image.Steps to reproduce
screenshot.png
.screenshot.png
.npm run dev
.Result
When you open
http://localhost:8000
, you can see in the target HTML URL of the MDX file that the first version of thescreenshot.png
appears and not what you saved as the latest version.The reason for this seems to be Gatsby's cache.
Expected result
When you save
screenshot.png
with new versions of the file,npm run dev
is able to pick up the latest saved version without having to clean Gatbsy's local cache withnpm run clean
.