Skip to main content

Vercel / Netlify smart home integration, free and open source

Vercel / Netlify integration for Gladys Assistant

Follow the deployments of your Vercel projects and Netlify sites.

Follow the deployments of your Vercel projects and Netlify sites from Gladys: each project becomes a device showing the status of its latest deployment, a scene can react when a deployment fails or goes live, and a dashboard widget sums it all up.

The integration talks to the Vercel and Netlify cloud APIs: Gladys needs internet access. It works worldwide.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Vercel / Netlify and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

Fill in at least one of the two tokens; leave the other one empty to ignore that platform.

  • Vercel access token: on Vercel, open Account settings β†’ Tokens and create a token. Its scope must include the account or team to follow.
  • Vercel team ID (optional): for a team account, paste the team ID (team_..., in the team's Settings β†’ General). Empty: your personal account.
  • Netlify access token: on Netlify, open User settings β†’ Applications β†’ Personal access tokens and create a token.
  • Refresh interval: how often the deployments are read, in seconds (300 by default, one minute minimum).

Save, then click Test the connection: the message tells how many projects each platform returned, or why it failed (token refused, platform unreachable). The connection status of the integration reports the same.

The tokens are stored by Gladys and only sent to the API of their platform; they never appear in the logs.

Devices​

Open the Discovery tab: every Vercel project and Netlify site (100 per platform at most) is listed as Vercel – <project> or Netlify – <site>. Add the ones you want to follow. Each device has two features:

FeatureContent
Deployment statusStatus of the latest deployment: queued, building, ready, error or canceled
Build durationBuild time of the latest finished deployment, in seconds

The latest deployment is the most recent one, production or preview. A renamed project stays the same device.

Scenes and dashboards​

Scene triggers​

  • Deployment status changed: a project has a new deployment, or its latest deployment changed status. Filter by project, platform, new status (e.g. only error) and environment (production, preview). Variables available in the scene: project name, platform, new and previous status, environment, deployment URL, Git branch, commit message and deployment ID. Example: when a production deployment fails, send me a message with the commit message.
  • Platform unreachable: Vercel or Netlify stopped answering, or refused the token (expired, revoked). Filter by platform. Variables: platform, token refused (yes/no), error. It fires once per outage, and only for a platform that answered before.

The statuses read when the integration starts are the reference: a restart fires no trigger.

Scene actions​

  • Refresh the deployments: reads both platforms now. Outputs: number of projects, ready, in progress and failed.
  • Get the deployment status: latest deployment of a chosen project, as read at the last refresh. Outputs: status, online (yes/no), environment, URL, branch, commit message, creation date.
  • Start a deployment: starts a new production deployment of a chosen project β€” a redeploy of the latest production deployment on Vercel, a new build on Netlify. Output: the ID of the new deployment. The token needs write access.

Dashboard widget​

The Deployments widget shows the number of projects ready, in progress and failed, the list of the projects with the status and branch of their latest deployment (failures first, ten projects at most) and a Refresh button. Its Platform setting keeps only Vercel or only Netlify.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

These are the settings Vercel / Netlify asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoCreate an access token on Vercel, on Netlify or on both, and paste it below. Each project or site becomes a device that shows the status of its latest deployment. Leave a token empty to ignore that platform.
Vercel access tokensecretNoAccount settings β†’ Tokens. Leave empty if you do not use Vercel.
Vercel team IDstringNoOnly for a team account (Team settings β†’ General). Empty: your personal account.
Netlify access tokensecretNoUser settings β†’ Applications β†’ Personal access tokens. Leave empty if you do not use Netlify.
Refresh interval (s)numberNoHow often the deployments are read, in seconds (one minute minimum).

How to install Vercel / Netlify in Gladys​

  1. In Gladys, open Integrations: Vercel / Netlify appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/prohand/gladys-vercel-netlify:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/prohand/gladys-vercel-netlify.

Vercel / Netlify requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

Vercel / Netlify is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by prohand, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime πŸ™‚