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(monorepo/server): libraries not accessible on dist
Elian Doran87f3797b96cd
diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.tsindex e66773db45..3f467c95c5 100644--- a/apps/server/src/routes/assets.ts+++ b/apps/server/src/routes/assets.ts@@ -33,7 +33,7 @@ async function register(app: express.Application) {app.use(`/${assetPath}/images`, persistentCacheStatic(path.join(srcRoot, "..", "images")));app.use(`/assets/vX/images`, express.static(path.join(srcRoot, "..", "images")));app.use(`/assets/vX/stylesheets`, express.static(path.join(srcRoot, "public/stylesheets")));- app.use(`/${assetPath}/libraries`, persistentCacheStatic(path.join(srcRoot, "..", "libraries")));+ app.use(`/${assetPath}/libraries`, persistentCacheStatic(path.join(srcRoot, "public/libraries")));app.use(`/assets/vX/libraries`, express.static(path.join(srcRoot, "..", "libraries")));const nodeModulesDir = isDev ? path.join(srcRoot, "..", "..", "..", "node_modules") : path.join(srcRoot, "..", "node_modules");