10 lines
336 B
TypeScript
10 lines
336 B
TypeScript
#!/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);
|