do frontend (preact)

This commit is contained in:
2026-11-21 02:07:32 +01:00
parent ba66bdb68a
commit 7677b5cb64
32 changed files with 1267 additions and 31 deletions

View File

@@ -21,7 +21,7 @@ pub async fn run_server(mut args: ServeArgs, config: config::Config) -> anyhow::
let app = Router::new()
.route("/api-ws", routing::get(api::websocket))
.fallback_service({
let dir_serve = ServeDir::new("static").append_index_html_on_directories(true);
let dir_serve = ServeDir::new("web/dist").append_index_html_on_directories(true);
#[cfg(feature = "compress")]
let dir_serve = dir_serve