quartz icon indicating copy to clipboard operation
quartz copied to clipboard

quartz build --serve does not update explorer with folder / new notes

Open ckpearson opened this issue 1 year ago • 2 comments

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:

  1. Start serving the site with npx quartz build --serve
  2. Add a new folder / new markdown file / remove etc etc
  3. The terminal updates as if it's detected changes (and in fact you can navigate to the page manually via URL)
  4. 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
  • node Version: v20.11.0
  • npm version: 10.5.0
  • OS: macOS Sonoma 14.4
  • Browser: Safari & Chrome

ckpearson avatar Apr 09 '24 21:04 ckpearson

Facing the same issue with NixOS and Firefox-based browsers. Has anyone found the relevant code to edit?

donovanglover avatar Apr 11 '24 10:04 donovanglover

@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.

ckpearson avatar Apr 11 '24 17:04 ckpearson

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.

xlinker1 avatar Aug 07 '24 16:08 xlinker1

This is a known bug where the content index isn't updated on hot refresh

jackyzha0 avatar Aug 09 '24 01:08 jackyzha0