Skip to content

Build your personal knowledge base with Trilium Notes

refactor(server): fix stylesheet paths

Elian Doranac79ae29f225
diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts
index 0f35839b13..9a0010f936 100644
--- a/apps/server/src/routes/assets.ts
+++ b/apps/server/src/routes/assets.ts
@@ -43,7 +43,7 @@ async function register(app: express.Application) {
app.use(`/${assetPath}/app`, clientProxy);
app.use(`/${assetPath}/app-dist`, clientProxy);
app.use(`/${assetPath}/stylesheets`, proxy(publicUrl, {
- proxyReqPathResolver: (req) => "/stylesheets" + req.url
+ proxyReqPathResolver: (req) => `/${assetPath}/app/src/stylesheets/${req.url}`
}));
app.use(`/${assetPath}/libraries`, proxy(publicUrl, {
proxyReqPathResolver: (req) => "/libraries" + req.url