Skip to content

Build your personal knowledge base with Trilium Notes

fix(nx/server): missing images in dist

Elian Doran258fe2e452fe
diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts
index 906a1a5e42..e9218fc448 100644
--- a/apps/server/src/routes/assets.ts
+++ b/apps/server/src/routes/assets.ts
@@ -41,7 +41,7 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/app`, clientStaticCache);
app.use(`/${assetPath}/app-dist`, clientStaticCache);
app.use(`/${assetPath}/stylesheets`, persistentCacheStatic(path.join(distDir, "public", "stylesheets")));
- app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "public", "images")));
+ app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "assets", "images")));
}
app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts")));
app.use(`/assets/vX/fonts`, express.static(path.join(srcRoot, "public/fonts")));