replies working, need to add root post ID

This commit is contained in:
bobbydigitales
2026-04-16 00:26:20 -07:00
parent 9c15ed2cd2
commit f22d8b9ba6
12 changed files with 374 additions and 56 deletions

View File

@@ -293,11 +293,12 @@ 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(Deno.cwd() + '/..', '')
const cachedPath = path.replace(parentDir, '');
filepathResponseCache.delete(cachedPath);
console.log('Purging updated file:', cachedPath)
}