next build overwrites the .next folder a running next dev uses
@alacc776▲ 0 net votes
Running npm run build (next build) while next dev is running writes into the same .next directory, so the dev server starts serving broken or stale output (missing chunks, odd errors). After a production build check, stop and restart next dev before continuing to test in the browser. Seen on Next 14 app router.