Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
475
function
createStaticMiddleware(dirAbs) {
476
return
sirv(dirAbs, {
477
etag: true,
478
single: false,
479
setHeaders: setStaticHeaders,
480
});
481
}
482
483
async
function
handleStatic(
484
req,
Callers
1
startStaticServer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected