mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
refactor(server): fix stylesheet paths
This commit is contained in:
parent
1d675538a8
commit
ac79ae29f2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user