use esbuild to package mesh, remove fsave, add prod path overrides for esbuild files in prod server mode
This commit is contained in:
parent
828bd69613
commit
10a107e518
8 changed files with 94 additions and 263 deletions
8
app.js
8
app.js
|
|
@ -568,6 +568,14 @@ function handleVersion(req, res, next) {
|
|||
} else {
|
||||
return http.redirect(res, `${req.url}?ver:${vstr}`);
|
||||
}
|
||||
} else if (!debug) {
|
||||
let { path } = req.app;
|
||||
if (path === '/v2/lib/mesh/work.js') {
|
||||
req.url = req.app.path = '/v2/lib/pack/work.js';
|
||||
} else if (path === '/v2/lib/main/mesh.js') {
|
||||
req.url = req.app.path = '/v2/lib/pack/mesh.js';
|
||||
}
|
||||
next();
|
||||
} else {
|
||||
next();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue