Supabase.js (Bubble plugin)
  • Setup
    • Basic Setup
      • General notes on Bubble setup
    • Supabase Auth
      • Initializing Auth
      • How to: Login
      • How to: Sign Up
      • How to: MFA
      • Identity linking
    • Supabase Data
      • How to: Fetch Data
      • Data Realtime V2 (beta)
      • Foreign Table
      • How to: Create a Thing
      • How to: Update a thing
      • How to: Delete a thing
      • Data Realtime
      • Optimization Tips
      • Schema Validation
      • Create XML Sitemap
    • Supabase Storage
    • Supabase Realtime
    • Supabase Edge Functions
      • Basic Edge Function
      • Bubble Setup
Powered by GitBook
On this page
  1. Setup
  2. Supabase Edge Functions

Bubble Setup

PreviousBasic Edge Function

Last updated 6 months ago

Running the Edge Function from the element is super simple after you made all the setup.

  • The plugin support custom body, and header values, which will be sent after parsing them.

  • The Authorization Header will be sent automatically, and it's the same as for the Data element, meaning if you query the DB in the Edge Function RLS will be applied.

  • Once we get a 200 or 201 response the event "edge function finished" will be fired, so you can safely reference the reponse.

  • The plugin also uses AJV validation just like in the Data element, which is optional but highly recommended.