This is derived from Nate B Jones Open Brain. I've made some minor improvements, but the initial work of laying it out cleanly was done by him and if this is saving you time, you should toss some resources his way.
Directories:
supabase- edge functions for Supabasepublic-site- contents of the Supabase storage bucket namedpublic-site
To update the RPC Functions (AKA stored procedures),
- Ensure you've set
SUPABASE_DB_PASSWORD - Create a new migration (e.g., for match_thoughts)
supabase migration new update_match_thoughts
- Edit the file it created
e.g.,
supabase/migrations/<timestamp>_update_match_thoughts.sqlPaste your updatedCREATE OR REPLACE FUNCTIONstatement. - Deploy
OR
supabase db push
deploy_all.sh