Skip to content

Proper way to store Supabase client in Hono Cloudflare Workers #3718

Answered by marcomuser
bulutg asked this question in Q&A
Discussion options

You must be logged in to vote

I find this little middleware helper to be very useful for this specific usecase: https://github.com/maou-shonen/hono-simple-DI. It allows you to define whether your dependency should be request scoped or reused across requests.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@bulutg
Comment options

@marcomuser
Comment options

Answer selected by bulutg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants