Initialize checks for unused ".cache/json" directory before deleting all HTML and CSS #33262
Closed
2 tasks done
Labels
help wanted
Issue with a clear description that the community can help with.
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
The initialize function checks for the existence of
.cache/json
, and if it doesn't exist then deletes all existing HTML and CSS files. This directory is unused when using lmdb-store. This means that if no pages have changed then all the pages on the site are deleted.There are several issues that I can see here:
Reproduction Link
https://github.com/ascorbic/cache-json-bug
Steps to Reproduce
.cache/json
directoryExpected Result
public/index.html
should existActual Result
All HTML and CSS files are deleted and no re-created
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: