mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-12 20:02:28 +08:00
fix(server): doc notes not being served in dev mode
This commit is contained in:
parent
3911c0c22b
commit
ec95f62cd2
@ -31,6 +31,7 @@ async function register(app: express.Application) {
|
|||||||
target: productionConfig.target
|
target: productionConfig.target
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.use(`/${assetPath}/app/doc_notes`, persistentCacheStatic(path.join(srcRoot, "public/app/doc_notes")));
|
||||||
app.use(`/${assetPath}/app`, webpackMiddleware(frontendCompiler));
|
app.use(`/${assetPath}/app`, webpackMiddleware(frontendCompiler));
|
||||||
} else {
|
} else {
|
||||||
app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app")));
|
app.use(`/${assetPath}/app`, persistentCacheStatic(path.join(srcRoot, "public/app")));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user