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

Function createStaticMiddleware

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

Source from the content-addressed store, hash-verified

601}
602
603function createStaticMiddleware(dirAbs) {
604 return sirv(dirAbs, {
605 // Builds replace hashed assets while the local server is running.
606 dev: true,
607 etag: true,
608 single: false,
609 setHeaders: setStaticHeaders,
610 });
611}
612
613async function handleStatic(
614 req,

Callers 1

startStaticServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected