mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: skip server load in cli mode
This commit is contained in:
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);
|
||||
Reference in new issue
Block a user