Creating a Supabase client and injecting arguments using Layer
Hey folks,
I'm trying to create a Supabase client using
and I was hoping I could inject arguments via that callback somehow, eg. something like this: , but I haven't been able to figure out how to do that
I'm trying to create a Supabase client using
const supabase = createServerSupabaseClient<Database>({ req, res });. I want to use Layer to inject it into my effect context. However, how do I provide the arguments to the Layer when I create it? For a different instance of Supabase, I'm using this: and I was hoping I could inject arguments via that callback somehow, eg. something like this: , but I haven't been able to figure out how to do that
