From ac79ae29f2257e50abcc7dc6573cf68ebb08ff05 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 16 May 2025 22:27:01 +0300 Subject: [PATCH] refactor(server): fix stylesheet paths --- apps/server/src/routes/assets.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/server/src/routes/assets.ts b/apps/server/src/routes/assets.ts index 0f35839b1..9a0010f93 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