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

Function buildLocalServiceRouteArgs

scripts/dev-static.mjs:314–324  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

312// The static server and the ingress proxy front the same two local backends,
313// so they share one route table.
314function buildLocalServiceRouteArgs(config) {
315 const agentServerUrl = getAgentServerBaseUrl(config);
316 return [
317 "--route",
318 `${AUTOMATION_ROUTE_PREFIX}=${getAutomationBaseUrl(config)}`,
319 ...AGENT_SERVER_ROUTE_PREFIXES.flatMap((prefix) => [
320 "--route",
321 `${prefix}=${agentServerUrl}`,
322 ]),
323 ];
324}
325
326function startAgentServer(config) {
327 logService(

Callers 3

dev-static.test.tsFile · 0.90
startStaticServerFunction · 0.85
startIngressFunction · 0.85

Calls 2

getAutomationBaseUrlFunction · 0.85
getAgentServerBaseUrlFunction · 0.70

Tested by

no test coverage detected