Skip to content

Build your personal knowledge base with Trilium Notes

fix(server): help-dist incorrectly served in prod

Elian Doran6c2e5a1cc4d2
diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts
index 79357342e9..c736b43806 100644
--- a/apps/server/src/routes/assets.ts
+++ b/apps/server/src/routes/assets.ts
@@ -52,7 +52,7 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(resourceDir, "public", "fonts")));
app.use(`/${assetPath}/translations/`, persistentCacheStatic(path.join(resourceDir, "public", "translations")));
app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(resourceDir, "assets", "images")));
- app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(resourceDir, "assets", "doc_notes")));
+ app.use(`/${assetPath}/app-dist/doc_notes`, persistentCacheStatic(path.join(resourceDir, "assets", "doc_notes")));
}
app.use(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts")));
app.use(`/assets/vX/images`, express.static(path.join(srcRoot, "..", "images")));