“On my /products page, fetch all rows from the products table in Supabase and display them as cards. Use server-side rendering so the data is available on first load. Each card should show the product name, price, and image. Sort by newest first.”
“I just created a posts table in Supabase. Grant my app access to it so it stops saying 'permission denied for table', make sure Row-Level Security is turned on, and explain in plain English who can now read and change what.”
“My posts table has security turned on but no rules set, so my app can't see anything. Add these rules: anyone can read published posts, signed-in users can create new posts, and each user can only edit or delete their own posts. Walk me through what each rule does in plain English.”
“In my chat app, subscribe to new messages in the messages table using Supabase Realtime. When a new message is inserted, automatically add it to the displayed message list without a page reload. Clean up the subscription when the component unmounts.”