refactor(server): fix stylesheet paths

This commit is contained in:
Elian Doran 2025-05-16 22:27:01 +03:00
parent 1d675538a8
commit ac79ae29f2
No known key found for this signature in database

View File

@ -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