Wrapping Hono with Effect: Middleware and Child Effects Integration
hey friends I'm looking to wrap Hono under Effect (I cannot use Effect's HttpApi module) I'm looking for a way to define a top level effect that initialize the server, and then all handlers, middleware will go in child effects
Here's an example https://stackblitz.com/edit/vitejs-vite-tetb2z7a My issue is that I'm unsure how I can wrap LoggerMiddleware in my example, as Hono requires a next() or Response to be returned from a middleware.
Furthermore, is there any way to "manually" attach effects as children to a parent one. Maybe I misunderstood how effect works, so please correct me if I'm wrong.
I cannot pass the managed runtime in my middleware as it will spawn a new dissociated effect, and the annotateLogs in server.ts will not be taken into account.