MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / buildAutomationBackendEnv

Function buildAutomationBackendEnv

scripts/dev-static.mjs:327–342  ·  view source on GitHub ↗
(config, env = process.env)

Source from the content-addressed store, hash-verified

325}
326
327function buildAutomationBackendEnv(config, env = process.env) {
328 // Both backends share the same session API key value.
329 return {
330 AUTOMATION_AGENT_SERVER_URL: `http://localhost:${config.agentServerPort}`,
331 AUTOMATION_AGENT_SERVER_API_KEY: config.sessionApiKey,
332 AUTOMATION_DB_URL: `sqlite+aiosqlite:///${join(config.stateDir, "automations.db")}`,
333 AUTOMATION_BASE_URL: `http://localhost:${config.ingressPort}`,
334 AUTOMATION_WORKSPACE_BASE: join(config.stateDir, "workspaces"),
335 AUTOMATION_LOCAL_API_KEY: config.sessionApiKey,
336 ...buildAutomationTelemetryEnv(env),
337 AUTOMATION_CORS_ORIGINS: `http://localhost:${config.ingressPort},http://127.0.0.1:${config.ingressPort},http://localhost:3001,http://127.0.0.1:3001`,
338 FILE_STORE: "local",
339 LOCAL_STORAGE_PATH: join(config.stateDir, "storage"),
340 OPENHANDS_SUPPRESS_BANNER: "1",
341 };
342}
343
344function startAutomationBackend(config) {
345 logService(

Callers 2

dev-static.test.tsFile · 0.90
startAutomationBackendFunction · 0.85

Calls 1

Tested by

no test coverage detected