mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix(server): some dist assets not served properly
This commit is contained in:
@@ -35,9 +35,9 @@ async function register(app: express.Application) {
|
||||
url = url.replace(/^\/src/, "");
|
||||
if (!url.startsWith("/@")) {
|
||||
url = "/src" + url;
|
||||
url = url.replace(/\.js$/, ".ts");
|
||||
}
|
||||
url = `/${assetPath}/app${url}`;
|
||||
url = url.replace(/\.js$/, ".ts");
|
||||
console.log(`${req.url} => ${publicUrl}${url}`);
|
||||
return url;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user