Question about honojs and supabase. createServerClient is deprecated?
See the file for more details...
3 Replies
The method is not deprecated. The message states that some properties are deprecated. Typescript doesn't allow you to make properties as deprecated.
May I ask what is the supabaseMiddlewere for? If you just want to set a global instance of the supabase client you can create a
/_shared
directory under /functions
and export supabase client from there. Then you just import the client wherever you need to use it.
You can check this repo of mine that I created to build a REST api using supabase and hono inside a supabase function.
I did not implement middleweres because it was just a proof of concept, but the api structure is pretty straight forward so If you need to implement them it shouldn't be that difficult.GitHub
social-network/supabase/functions at main · Santos-Padres/social-n...
Backend para enseñar el consumo de REST APIs. Contribute to Santos-Padres/social-network development by creating an account on GitHub.