Skip to content

Build your personal knowledge base with Trilium Notes

fix(server): doc notes not being served in dev mode

Elian Doranec95f62cd24a
diff --git a/src/routes/assets.ts b/src/routes/assets.ts
index 959de788b6..e76f0fc88f 100644
--- a/src/routes/assets.ts
+++ b/src/routes/assets.ts
@@ -31,6 +31,7 @@ async function register(app: express.Application) {
target: productionConfig.target
});
+ app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(srcRoot, "public/app/doc_notes")));
app.use(`/${assetPath}/app`, webpackMiddleware(frontendCompiler));
} else {
app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app")));