Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 03ae7fc

Browse files
committed
fix: fix fs watch
1 parent 9a46893 commit 03ae7fc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

server/app.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,10 +678,8 @@ export class Application {
678678
this.#renderCache.clear()
679679
} else if (url.startsWith('/pages/')) {
680680
this.#renderCache.delete(toPagePath(url))
681-
if (type === 'add') {
682-
this.#pageRouting.update(this.getRouteModule({ url, hash }))
683-
}
684-
} else if (url.startsWith('/api/') && type === 'add') {
681+
this.#pageRouting.update(this.getRouteModule({ url, hash }))
682+
} else if (url.startsWith('/api/')) {
685683
this.#apiRouting.update(this.getRouteModule({ url, hash }))
686684
}
687685
}

0 commit comments

Comments
 (0)