quartz build --serve does not update explorer with folder / new notes
Describe the bug
When the site is hosted and being watched with npx quartz build --serve the explorer does not update with the amended structure.
To Reproduce
Steps to reproduce the behavior:
- Start serving the site with
npx quartz build --serve - Add a new folder / new markdown file / remove etc etc
- The terminal updates as if it's detected changes (and in fact you can navigate to the page manually via URL)
- The structural changes are not reflected in the explorer - even with refreshes, you have to either make a change to the typescript or restart the serving
Expected behavior I'd expect any changes I make to be reflected.
Desktop (please complete the following information):
- Quartz Version: 4.2.3
-
nodeVersion: v20.11.0 -
npmversion: 10.5.0 - OS: macOS Sonoma 14.4
- Browser: Safari & Chrome
Facing the same issue with NixOS and Firefox-based browsers. Has anyone found the relevant code to edit?
@donovanglover I'm unclear, however I've noticed the same behaviour happens with the full text search, which seems to behave very oddly under --serve. My (guess) is that there's something that skips over a bunch of things during a --serve rebuild in order to be as responsive as possible, as everything is as I expect it to be after running a regular build.
similar issue, I use npx quartz build -v to rebuild and see what's being rebuilt. After that I run quartz build --serve and it works fine.
This is a known bug where the content index isn't updated on hot refresh