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

Function createStaticMiddleware

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

Source from the content-addressed store, hash-verified

536}
537
538function createStaticMiddleware(dirAbs) {
539 return sirv(dirAbs, {
540 etag: true,
541 single: false,
542 setHeaders: setStaticHeaders,
543 });
544}
545
546async function handleStatic(
547 req,

Callers 1

startStaticServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected