Add notification nav, show only replies in short format
This commit is contained in:
@@ -292,12 +292,14 @@ function connectWebsocket(request: Request) {
|
||||
|
||||
}
|
||||
|
||||
const projectRoot = new URL('..', import.meta.url).pathname;
|
||||
|
||||
async function devServerWatchFiles() {
|
||||
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(projectRoot, '/');
|
||||
filepathResponseCache.delete(cachedPath);
|
||||
console.log('Purging updated file:', cachedPath)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user