Storage

hub-media bucket, upload paths, and access rules.

Creative assets (images, videos) are stored in Supabase Storage and referenced by URL in hub_assets.

hub-media bucket

Public read access allows share links and presentation mode to load media without authentication. Writes require an authenticated session with editor role on the project.

Upload paths

Upload logic lives in lib/workspace/ and follows a predictable path pattern:

bash
hub-media/{projectId}/{initiativeId}/{assetId}/{filename}

Access rules