Effect CommunityEC
Effect Community14mo ago
6 replies
nounderline

Running `HttpApp.toWebHandler` with a Managed Runtime Across Requests

Is there a way for HttpApp.toWenHandler to keep context (layers, services) and run it within single managed runtime across requests?

const runtime = ManagedRuntime.make(ViteDev)

Deno.serve(
  // bind this function so it's executed in a context of a runtime?
  HttpApp.toWebHandler(Router),
)
Was this page helpful?