Awesome, thank you! Im thinking of switching from Xano to Supabase for upcoming projects. I love RLS and all of these features. One thing im worried about is complex business logic. Afaik, that's where edge functions come in handy (or functions? not sure). Not quite sure yet how to call them from weweb (I assume its the REST API plugin).
Yes, for now the REST API plugin but we're working on improving the native integration with Supabase. Calling edge functions will likely be a part of that update
really cool, thanks! Although the most critical might be: how to get images from supabase to display in weweb? (the bucket, the link to the table, the retrieval of the image path, for exemple) ?
I noticed the url for the car image was null troughout the entire video up untill the end. I also looked on the weweb forum for how to upload and retrieve the image/file url from supabase but the nocode way was not working yet, it can be done with js. Did you guys get this to work yet or is it still being worked on?
Regarding the RLS part of the video, does this mean we always need to have a "everyone can access" policy in Supabase in order to access data during development? This seems undesirable from a security standpoint
Hello 👋 No, we wouldn't recommend that either. We would recommend you setup your RLS policies as you would for your app in production. Then in the WeWeb editor, you can login as an admin user who has all the rights pertaining to your app while you're building. Does that make sense?
@@gduteaud sure! first, you need to add the Supabase Auth plugin in WeWeb and setup a login flow: ruclips.net/video/pJgwMv-1dPs/видео.html Then, you'll need to make sure you've setup user roles in Supabase and created user groups in WeWeb: docs.weweb.io/plugins/auth-systems/supabase-auth.html#user-roles-permissions You'll also need to make sure to write RLS policies in Supabase that match what you want user roles to be able to do or not. When you've done all this, you can login as a user in your WeWeb app and play around. If you want to give it a try and get stuck along the way, don't hesitate to reach out to us in the community with some screenshots or video of how things are setup on your side: community.weweb.io/
I have used WeWeb with Xano as the backend for several projects, and I’ve always used backend pagination (m.ruclips.net/video/CSNCVPYc7wE/видео.html). However, for a new project, I’ve chosen Supabase. How does backend pagination work with Supabase?
When working with a Supabase collection, the pagination you add in the "Query configuration" step is backend pagination. The data is fetched after that step. Not sure if this is clear. If not, don't hesitate to reach out in the community: community.weweb.io/
Awesome, thank you! Im thinking of switching from Xano to Supabase for upcoming projects. I love RLS and all of these features. One thing im worried about is complex business logic. Afaik, that's where edge functions come in handy (or functions? not sure). Not quite sure yet how to call them from weweb (I assume its the REST API plugin).
Yes, for now the REST API plugin but we're working on improving the native integration with Supabase. Calling edge functions will likely be a part of that update
really cool, thanks!
Although the most critical might be: how to get images from supabase to display in weweb?
(the bucket, the link to the table, the retrieval of the image path, for exemple) ?
We'll update the Supabase plugin in the following days to be able to handle file storage and images. We'll keep you posted!
I noticed the url for the car image was null troughout the entire video up untill the end. I also looked on the weweb forum for how to upload and retrieve the image/file url from supabase but the nocode way was not working yet, it can be done with js. Did you guys get this to work yet or is it still being worked on?
It will be working when the V2 of the plugin will be pushed to production by the end of the month!
Regarding the RLS part of the video, does this mean we always need to have a "everyone can access" policy in Supabase in order to access data during development? This seems undesirable from a security standpoint
Hello 👋 No, we wouldn't recommend that either. We would recommend you setup your RLS policies as you would for your app in production.
Then in the WeWeb editor, you can login as an admin user who has all the rights pertaining to your app while you're building.
Does that make sense?
@@weweb conceptually yes but I can't figure out how to do that in practice. Do you have resources explaining it?
@@gduteaud sure! first, you need to add the Supabase Auth plugin in WeWeb and setup a login flow: ruclips.net/video/pJgwMv-1dPs/видео.html
Then, you'll need to make sure you've setup user roles in Supabase and created user groups in WeWeb: docs.weweb.io/plugins/auth-systems/supabase-auth.html#user-roles-permissions
You'll also need to make sure to write RLS policies in Supabase that match what you want user roles to be able to do or not.
When you've done all this, you can login as a user in your WeWeb app and play around.
If you want to give it a try and get stuck along the way, don't hesitate to reach out to us in the community with some screenshots or video of how things are setup on your side: community.weweb.io/
Wow
I have used WeWeb with Xano as the backend for several projects, and I’ve always used backend pagination (m.ruclips.net/video/CSNCVPYc7wE/видео.html). However, for a new project, I’ve chosen Supabase. How does backend pagination work with Supabase?
When working with a Supabase collection, the pagination you add in the "Query configuration" step is backend pagination. The data is fetched after that step.
Not sure if this is clear. If not, don't hesitate to reach out in the community: community.weweb.io/