Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(nx/server): access to assets in prod
Elian Doran494ee4739aff
diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.tsindex e9218fc448..612056e9ed 100644--- a/apps/server/src/routes/assets.ts+++ b/apps/server/src/routes/assets.ts@@ -41,6 +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}/libraries`, persistentCacheStatic(path.join(distDir, "public", "libraries")));app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(distDir, "assets", "images")));}app.use(`/${assetPath}/fonts`, persistentCacheStatic(path.join(srcRoot, "public/fonts")));