Function
makeHandler
(
root: string,
options: Omit<Parameters<typeof HttpStaticServer.make>[0], "root"> = {}
)
Source from the content-addressed store, hash-verified
| 19 | ) |
| 20 | |
| 21 | const makeHandler = ( |
| 22 | root: string, |
| 23 | options: Omit<Parameters<typeof HttpStaticServer.make>[0], "root"> = {} |
| 24 | ) => |
| 25 | HttpRouter.toWebHandler( |
| 26 | HttpStaticServer.layer({ |
| 27 | root, |
| 28 | ...options |
| 29 | }).pipe(Layer.provideMerge(staticFilesLayer)), |
| 30 | { disableLogger: true } |
| 31 | ) |
| 32 | |
| 33 | const withStaticFiles = async ( |
| 34 | run: (context: { |
Tested by
no test coverage detected