trigger.dev icon indicating copy to clipboard operation
trigger.dev copied to clipboard

[TRI-1169] Create a Vercel integration package

Open ericallam opened this issue 1 year ago • 5 comments

Vercel have webhook events that we could be exposed through a @trigger.dev/vercel integration:

https://vercel.com/docs/observability/webhooks-overview/webhooks-api

They also have an API for registering webhooks that we can use:

https://vercel.com/docs/rest-api/endpoints#webhooks

Useful docs/code

Requirements

  • Make sure that you have fully tested that each webhook works and comes through to your locally running dashboard
  • Make sure you've implemented the best practice security in verifying the payloads. Vercel talk about this in their linked docs above.
  • Make sure to add Vercel to the integrationCatalog.

From SyncLinear.com | TRI-1169

ericallam avatar Aug 28 '23 21:08 ericallam

@ericallam I'll love to work on this. Pls assign this to me.

Chigala avatar Sep 12 '23 19:09 Chigala

@matt-aitken I would love to take up the issue if no one is working on it

Tushar98644 avatar Oct 15 '23 14:10 Tushar98644

@ericallam Do we want to support just the webhooks in this integration?

Vercel does not have an official SDK that provides its API functions. SDK - Vercel Client / Available Functions

If we plan to provide their API functions as tasks (say create_env_var, edit_env_var, etc.), we'll have to write our own wrapper using native fetch. Do we want to support Vercel tasks as part of this integration? API Reference

hmacr avatar Oct 21 '23 08:10 hmacr

@ericallam Apologies for the reminder. I'm about to start on the Webhooks part and would like your view on the above query.

hmacr avatar Oct 25 '23 05:10 hmacr

Yea I think let's try and support the webhooks and any other that might be useful, but don't have to be an exhaustive support from the beginning 👍

ericallam avatar Oct 25 '23 09:10 ericallam