Bubble Setup
Last updated
Last updated
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.