core: skip server load in cli mode

This commit is contained in:
undefined committed 2022-10-03 14:16:54 +08:00
1 parent c2c85581c4
commit f93108f160
4 files changed
+4 -2

No files matched your search

@@ -219,6 +219,7 @@ class RichMediaHandler extends Handler {
}
export function apply(ctx) {
if (process.env.HYDRO_CLI) return;
ctx.Route('wiki_help', '/wiki/help', WikiHelpHandler);
ctx.Route('wiki_about', '/wiki/about', WikiAboutHandler);
ctx.Route('set_theme', '/set_theme/:theme', SetThemeHandler);