agentops/app/supabase
xiaoxue af7cdc0ffd 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
..
dashboard_template 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
functions 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
migrations 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
config.toml 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
customer-env.sql 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
readme.md 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
seed.sql 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00
webhooks-template.sql 同步完整源码 - 2026-05-25 2026-05-25 01:45:55 +08:00

readme.md

Note: While this project may not have specific linting/formatting configurations, the repository uses shared development tools. Please see the root README.md for setup instructions if needed.

###Useful Commands:

Download Supabase CLI npm i supabase --save-dev or on Mac brew install supabase/tap/supabase

login supabase login

start supabase supabase start

link with remote project supabase link --project-ref <project-id>

pull changes from remote supabase db pull

load supabase configuration: supabase migration up supabase db reset supabase db reset --linked

deploy configuration to remote supabase db push

create diff supabase db diff

Setting up a new project

Setting up Auth

  1. Go to Authentication > URL Configuration
  2. Add https://app.agentops.ai as the Site URL
  3. Add https://app.agentops.ai/** into the Redirect URLs
  4. Go to Authentication > Providers
  5. Enable GitHub (by creating a GitHub app and filling in the provided info)
  6. Go to Settings > Authentication > SMTP Settings
  7. Enable Enable Custom SMTP
  8. Fill in the required sender and SMTP Provider details

Setting up Webhooks

  1. Download Supabase CLI (See above)
  2. Run supabase link --project-ref $Project-ID --password $db-password. The Project-ID can be found on supabase under settings > general > reference ID. If the password is not saved, it must be reset and stored in a secure location.
  3. Create a .env file in the supabase folder
  4. Add .env variables:
ATTIO_API_KEY=
ATTIO_OBJECT_ID=
  1. Run supabase secrets set --env-file ./supabase/.env
  2. Run supabase functions deploy
  3. On the Supabase website, go to database > webhooks and click "enable webhooks"
  4. Create a new webhook that posts to the Supabase function. Add the authorization header from the dropdown. This should auto-populate the service role key

You should be set!