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

Function createStaticMiddleware

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

Source from the content-addressed store, hash-verified

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

Callers 1

startStaticServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected