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

Function createStaticMiddleware

scripts/static-server.mjs:473–479  ·  view source on GitHub ↗
(dirAbs)

Source from the content-addressed store, hash-verified

471}
472
473function createStaticMiddleware(dirAbs) {
474 return sirv(dirAbs, {
475 etag: true,
476 single: false,
477 setHeaders: setStaticHeaders,
478 });
479}
480
481async function handleStatic(
482 req,

Callers 1

startStaticServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected