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