Supabase CLI
HostStuff ondersteunt het deel van de Supabase Management API dat de Supabase CLI nodig heeft voor koppelen, Edge Functions en secrets. Getest met CLI-versie 3.1.
1. Maak een toegangstoken
Section titled “1. Maak een toegangstoken”Maak onder Account in het dashboard een persoonlijk toegangstoken (sbp_…). Je kunt er maximaal 20 hebben. HostStuff bewaart alleen een hash: kopieer het token meteen.
export SUPABASE_ACCESS_TOKEN=sbp_...2. Maak een profiel
Section titled “2. Maak een profiel”Maak een bestand hoststuff.yaml:
name: hoststuffapi_url: https://app.hoststuff.nlproject_host: api.hoststuff.nldashboard_url: https://app.hoststuff.nl3. Koppel je project
Section titled “3. Koppel je project”Gebruik de CLI-ref van je project: 20 kleine letters, te vinden onder Supabase → Overzicht → Verbinden.
supabase --profile hoststuff.yaml link --project-ref <cli-ref>Wat werkt
Section titled “Wat werkt”# Edge Functions: HostStuff bouwt niets, de CLI levert de bundel aansupabase --profile hoststuff.yaml functions deploy <naam> --use-apisupabase --profile hoststuff.yaml functions listsupabase --profile hoststuff.yaml functions delete <naam>
# Secrets voor Edge Functionssupabase --profile hoststuff.yaml secrets set NAAM=waardesupabase --profile hoststuff.yaml secrets listsupabase --profile hoststuff.yaml secrets unset NAAM- Een functie is maximaal 900 KiB (gecomprimeerd).
verify_jwtgeldt voor het hele project, niet per functie.
Andere Management API-endpoints geven 404 Not implemented on HostStuff.
Migraties
Section titled “Migraties”Migraties zet je via de pooler (sessiemodus) door:
supabase db push --db-url "postgresql://postgres.<ref>:<wachtwoord>@pooler.hoststuff.nl:5432/postgres?sslmode=require"