mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-07 22:44:16 +00:00
fix(gateway): start browser HTTP control server module
This commit is contained in:
committed by
Peter Steinberger
parent
8d2035633b
commit
3129d1c489
@@ -11,7 +11,7 @@ export async function startBrowserControlServerIfEnabled(): Promise<BrowserContr
|
||||
// Lazy import: keeps startup fast, but still bundles for the embedded
|
||||
// gateway (bun --compile) via the static specifier path.
|
||||
const override = process.env.OPENCLAW_BROWSER_CONTROL_MODULE?.trim();
|
||||
const mod = override ? await import(override) : await import("../browser/control-service.js");
|
||||
const mod = override ? await import(override) : await import("../browser/server.js");
|
||||
const start =
|
||||
typeof (mod as { startBrowserControlServiceFromConfig?: unknown })
|
||||
.startBrowserControlServiceFromConfig === "function"
|
||||
|
||||
Reference in New Issue
Block a user