fix: use fs.watch instead of per-request existsSync for .next deletion
Replace the synchronous existsSync check on every request with a fs.watch watcher on the distDir. This avoids adding work to every request and instead reacts to filesystem events when the directory is actually deleted. Addresses review feedback from bgw on #91142.
Showing
Please
register
or
sign in
to comment