Temporary JS file randomly left un-deleted in .vitepress when user hit CTRL-C upon server start #3382
Closed
4 tasks done
Labels
upstream
Related to the dependencies
Describe the bug
Reproduction
This happened several times when I startup the dev server and hit CTRL-C very quickly. Most of the time I just notice the extra file and manually delete it.
But there was one time that I did not notice the tmp file, and mistakenly committed it.
Expected behavior
Maybe consider using
cache/
to store bundled user config?System Info
Additional context
This seemed to be caused by
loadConfigFromFile()
.Since this is a Vite API, it seems like we should ask them to add an extra option to specify the output location of temporary config file.
(code to blame)
Let me know if you would like to implement this change. If so, I can open a feature request to Vite.
Validations
The text was updated successfully, but these errors were encountered: