Manage your Supabase organization, projects, and databases
@trigger.dev/supabase
package provides an integration that wraps the Supabase Management API, allow you to run tasks that can manage your Supabase Orgs, Projects, and Databases.
It also provides the ability to trigger jobs based on changes in your Supabase database through the use of Supabase Database Webhooks.
SUPABASE_TOKEN
and then use it in the SupabaseManagementAPI
constructor:
SUPABASE_TOKEN
environment variable set in your project and keep it secret, as it provides full access to your Supabase account.
SupabaseManagementAPI
constructor with the matching id
of the integration:
SupabaseManagement
integration, you can run any of the Management API endpoints as a task inside a job. For example, to create a new Supabase project:
SupabaseManagement
integration also provides the ability to trigger jobs based on changes in your Supabase database through the use of Supabase Database Webhooks.
@trigger.dev/supabase
at
version 2.0.2
or earlier. If you are using 2.0.3
or later, this is done automatically for you.db
instance, passing in your Supabase project ID (or URL):
db
instance to add a trigger to run a job when a row is inserted, updated, or deleted from a table:
filter
object:
on
trigger: