Skip to content

Commit

Permalink
Update server.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Aug 17, 2023
1 parent 30a75ea commit de68af6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ sourceMapSupport.install();
* @typedef {import('@remix-run/node').ServerBuild} ServerBuild
*/
const BUILD_PATH = "./build/index.js";
const WATCH_PATH = "./build/metafile.server.json";

/**
* Initial build
Expand Down Expand Up @@ -83,10 +84,9 @@ function createDevRequestHandler(): RequestHandler {
}

chokidar
.watch(BUILD_PATH, {
.watch(WATCH_PATH, {
// Chokidar settings to avoid certain race condition issues #6831
ignoreInitial: true,
awaitWriteFinish: { stabilityThreshold: 200 },
})
.on("add", handleServerUpdate)
.on("change", handleServerUpdate);
Expand Down

0 comments on commit de68af6

Please sign in to comment.