fix(server): some dist assets not served properly

This commit is contained in:
Elian Doran 2025-05-17 00:08:49 +03:00
parent dd73517e7f
commit 83058e91b0
No known key found for this signature in database

View File

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