Replies: 2 comments 15 replies
-
You'd need to check with the db provider and their SDK what mode of operation (and exposition) is safe, along with your database auth setup. For supabase, if you want to have the client communicate directly with your supabase instance, you must set a RLS policy as your anon key will be exposed client-side. Please check the supabase SDK/js/auth-helpers docs for more details. |
Beta Was this translation helpful? Give feedback.
14 replies
-
I guess in general works also, but supabase specifically would be great.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just wondering, is there any particular benefit/security concerns that would make it better to have server routes fetch data from the database before serving it to the client? Or is it fine to use something like Supabase on the client to fetch and process database data?
Thanks in advance for the clarification!
Beta Was this translation helpful? Give feedback.
All reactions