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

Function createStaticMiddleware

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

Source from the content-addressed store, hash-verified

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

Callers 1

startStaticServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected