@trigger.dev/supabase package provides an integration that wraps the @supabase/supabase-js package, allowing you to run tasks to interact with your Supabase project.
If you want to trigger jobs based on changes in your Supabase database, you’ll need to use the
Supabase Management API integration
Usage
Our Supabase integration currently only supports service_role keys:supabase integration to run tasks in your jobs:
By using
runTask instead of the @supabase/supabase-js client directly inside your job run,
you’ll be able to create tasks that can be run idempotently and also retried. For more, see our
guide on Resumabilitydb object passed to the callback is an instance of the @supabase/supabase-js client, so you can use it to run any of the queries or other operations that the client supports:

