feat(web): port Fase 5 static file server w/ traversal protection; feat(grpc): port health stub

This commit is contained in:
asepharyana
2026-09-02 22:50:38 +07:00
parent 7030e26b3a
commit 1a6268bde5
9 changed files with 237 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bun
/**
* Zesdex web server — standalone entry point.
* Mirrors the `--web` mode of the Rust gateway.
*/
import { startWebServer } from "./index.ts";
const port = Number.parseInt(process.env.ZESDEX_WEB_PORT ?? "3000", 10);
const staticDir = process.env.ZESDEX_WEB_DIR ?? undefined;
startWebServer(port, staticDir);