Question about honojs and supabase. createServerClient is deprecated?

See the file for more details...
3 Replies
silentworks
silentworks5h ago
The method is not deprecated. The message states that some properties are deprecated. Typescript doesn't allow you to make properties as deprecated.
patito1009
patito10094h ago
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.
patito1009
patito10093h ago
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.

Did you find this page helpful?