Setup & Connection
Project connection, client layers, and environment.
Creative Hub uses a dedicated Supabase project. All data lives in hub_* tables with Row Level Security enabled.
Project
| Item | Detail |
|---|---|
| Project ref | |
| Dashboard | |
| Storage bucket |
Client layers
| File | Used by |
|---|---|
lib/supabase/client.ts | Browser — auth UI, realtime, client mutations |
lib/supabase/server.ts | Server Components & Server Actions |
lib/supabase/middleware.ts | Session refresh on every request |
lib/supabase/admin.ts | Service role — dev bypass, admin invites |
Connection
env
NEXT_PUBLIC_SUPABASE_URL=https://rnyeonvbnrwephpviyzu.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
SUPABASE_SERVICE_ROLE_KEY=your_service_role_key