The Supabase configuration for Sonar.
Discord is the only enabled provider to ensure that all users have a Discord user ID associated with them which Sonar can use to identify the membership of the user to the assigned Discord Server.
All 3 tables have Realtime enabled.
2 buckets, audio
and thumbnail
, are created which store the audio files and thumbnails for the sounds respectively. Both these buckets are set to public and their mime types are set to audio/*
and image/*
respectively. Files are stored as /<MemberID>/<FileID>
where the member ID is of the member who originally created the sound.
3 edge functions, add-sound
, edit-sound
and delete-sound
, are deployed which manage the sounds.