Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
538
function
createStaticMiddleware(dirAbs) {
539
return
sirv(dirAbs, {
540
etag: true,
541
single: false,
542
setHeaders: setStaticHeaders,
543
});
544
}
545
546
async
function
handleStatic(
547
req,
Callers
1
startStaticServer
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected