(
root: string,
options: Omit<Parameters<typeof HttpStaticServer.layer>[0], "root"> = {}
)
| 26 | ) |
| 27 | |
| 28 | const makeHandler = ( |
| 29 | root: string, |
| 30 | options: Omit<Parameters<typeof HttpStaticServer.layer>[0], "root"> = {} |
| 31 | ) => |
| 32 | HttpRouter.toWebHandler( |
| 33 | HttpStaticServer.layer({ |
| 34 | root, |
| 35 | ...options |
| 36 | }).pipe(Layer.provideMerge(staticFilesLayer)), |
| 37 | { disableLogger: true } |
| 38 | ) |
| 39 | |
| 40 | const withStaticFiles = async ( |
| 41 | run: (context: { |
no test coverage detected