bobbyd-replies #3

Merged
bobbydigitales merged 7 commits from bobbyd-replies into main 2026-04-16 21:56:30 -07:00
Showing only changes of commit 1353acc4d1 - Show all commits

View File

@@ -293,12 +293,11 @@ function connectWebsocket(request: Request) {
}
async function devServerWatchFiles() {
const parentDir = Deno.cwd().replace(/\/[^/]+$/, '');
const watcher = Deno.watchFs(["../static/", "../src/"]);
for await (const event of watcher) {
if (event.kind === "modify") {
for (const path of event.paths) {
const cachedPath = path.replace(parentDir, '');
const cachedPath = path.replace(Deno.cwd() + '/..', '')
filepathResponseCache.delete(cachedPath);
console.log('Purging updated file:', cachedPath)
}