mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
fix(server): package.json not accessible
This commit is contained in:
parent
83058e91b0
commit
b678e4ea28
@ -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}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user