Connect Supabase to manage cakes
Product management needs a Supabase project for the database, photo storage and the owner’s sign-in. Until it’s connected, the shop shows the built-in sample cakes, and nothing can be uploaded or saved.
- Create a free project at supabase.com.
- Run
supabase/schema.sql(and optionallysupabase/seed.sql) in the SQL editor. - Create the owner’s user in Authentication and add their ID to the shop_admins table.
- Add these to
.env.local(and your hosting settings), then restart or redeploy:NEXT_PUBLIC_SUPABASE_URL=https://YOUR-PROJECT.supabase.co NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_...
The full step-by-step guide is in docs/SUPABASE_SETUP.md. Never use the secret / service-role key in this app.