Integrating Astro with Effect: Scopes, Layers, and ManagedRuntime
hello, i'm trying to understand scopes, layers, and ManagedRuntime in order to bridge the gap between Astro and Effect. imagine i have an Auth service with a Live implementation using the Better Auth library
it would be really nice to be able to
which could then by used in a
is this the best way to pass the Astro global into the Effect system? interested to read the scope and layer docs again but would appreciate any pointers - thank you!
it would be really nice to be able to
yield* CurrentUser or yield* CurrentRequest in an Effect and have it scoped to the current Astro.request (or whatever is in the Astro global that's only accessible in a .astro file). this seems to be workingwhich could then by used in a
.astro page file:is this the best way to pass the Astro global into the Effect system? interested to read the scope and layer docs again but would appreciate any pointers - thank you!
