Documentation
Plugins
Sources
Vercel
Configuration

Vercel Source Plugin Configuration Reference

Example

This example syncs from Vercel to a Postgres destination, using API Key authentication. The (top level) source spec section is described in the Source Spec Reference. Incremental syncing is enabled and will be saved to a .cq/state/ directory by default.

kind: source
# Common source-plugin configuration
spec:
  name: vercel
  path: /path/to/downloaded/plugin # Buy from here: https://cloudquery.io/integrations/vercle
  registry: local
  version: "PREMIUM"
  tables: ["*"]
  destinations: ["postgresql"]
  skip_tables:
    - vercel_deployment_checks

  # Vercel specific configuration
  spec:
    backend_options:
      table_name: "test_state_table"
      connection: "@@plugins.postgresql.connection"
    access_token: "<YOUR_ACCESS_TOKEN_HERE>"

The Vercel plugin supports incremental syncing. This means that only new data will be fetched from Vercel and loaded into your destination for supported tables (support depending on API endpoint). This is done by keeping track of the last paginator for each table and only fetching data that has been updated since then. To enable this, backend option must be set in the spec (as shown in the example). This is documented in the Managing Incremental Tables section.

Vercel Spec

This is the (nested) spec used by the Vercel source plugin:

  • access_token (string, required): An access token for your Vercel account. Get yours from Vercel's Account Tokens Page (opens in a new tab).

  • team_ids (list of string, optional): A list of team IDs to sync. If not specified, all teams will be synced. To find the ID of a specific team, refer to Vercel Docs (opens in a new tab).

  • endpoint_url (string, optional. Default: https://api.vercel.com): API endpoint URL to use. For Vercel's production API, this should be https://api.vercel.com.

  • timeout_secs (integer in seconds, optional. Default: 5): Timeout for requests against the Vercel REST API.

  • max_retries (integer in seconds, optional. Default: 10): Maximum number of retries for requests against the Vercel REST API.

  • max_wait_secs (integer in seconds, optional. Default: 300): Maximum wait time between rate limited API requests. The plugin waits until the rate limit resets. If there's a need to wait longer than this time, the request will fail.

  • page_size (integer, optional. Default: 100): Number of items to request in each API call. This is a tradeoff between the number of API calls and the number of items per API call, which might take too long. The maximum allowed value is 100.

  • concurrency (integer, optional. Default: 10000): Number of concurrent requests to Vercel REST API.