mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 13:31:25 +00:00
refactor: rename to openclaw
This commit is contained in:
@@ -5,10 +5,10 @@ export type BrowserControlServer = {
|
||||
};
|
||||
|
||||
export async function startBrowserControlServerIfEnabled(): Promise<BrowserControlServer | null> {
|
||||
if (isTruthyEnvValue(process.env.CLAWDBOT_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
||||
if (isTruthyEnvValue(process.env.OPENCLAW_SKIP_BROWSER_CONTROL_SERVER)) return null;
|
||||
// Lazy import: keeps startup fast, but still bundles for the embedded
|
||||
// gateway (bun --compile) via the static specifier path.
|
||||
const override = process.env.CLAWDBOT_BROWSER_CONTROL_MODULE?.trim();
|
||||
const override = process.env.OPENCLAW_BROWSER_CONTROL_MODULE?.trim();
|
||||
const mod = override ? await import(override) : await import("../browser/control-service.js");
|
||||
const start =
|
||||
typeof (mod as { startBrowserControlServiceFromConfig?: unknown })
|
||||
|
||||
Reference in New Issue
Block a user