refactor(server): fix vite runtime not proxied

This commit is contained in:
Elian Doran 2025-05-16 22:55:49 +03:00
parent ae2eb9f4bb
commit d3488ca96a
No known key found for this signature in database

View File

@ -37,7 +37,7 @@ async function register(app: express.Application) {
url = "/src" + url;
}
url = `/${assetPath}/app${url}`;
url = url.replace(/.js$/, ".ts");
url = url.replace(/\.js$/, ".ts");
console.log(`${req.url} => ${publicUrl}${url}`);
return url;
}