mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
fix(server): package.json not accessible
This commit is contained in:
@@ -34,7 +34,9 @@ async function register(app: express.Application) {
|
||||
let url = req.url;
|
||||
url = url.replace(/^\/src/, "");
|
||||
if (!url.startsWith("/@")) {
|
||||
url = "/src" + url;
|
||||
if (!url.startsWith("/package.json")) {
|
||||
url = "/src" + url;
|
||||
}
|
||||
url = url.replace(/\.js$/, ".ts");
|
||||
}
|
||||
url = `/${assetPath}/app${url}`;
|
||||
|
||||
Reference in New Issue
Block a user