> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nofire.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Vercel

> Connect Vercel production deployments and their logs to NOFire AI

Connect Vercel to give NOFire production deployments with their build and runtime logs. Before a change ships, NOFire sees what went live and when. When something breaks, the deployment, its commit, and its logs are the evidence NOFire reasons over.

You authenticate with a Vercel API token. NOFire only reads production.

## What NOFire reads

| Signal | What NOFire reads |
| - | - |
| **Deployments** | The newest production deployments: state, URL, commit SHA, commit message, author, and branch |
| **Build logs** | The last lines of a production deployment's build output |
| **Runtime logs** | A production deployment's runtime log lines, with the request method, path, and response status |

NOFire also records each production deployment that went live as a change. A connection you add today also picks up the previous day. Preview deployments are not read: NOFire refuses any deployment whose target is not production.

## Prerequisites

* A Vercel account with at least one project that has a production deployment.
* Permission to create an API token.
* The team's **Team ID**, if you use a Full Account token to read a team.

## Step 1: Create a Vercel API token

> [accordion] Create an API token in Vercel
>
> 1. Open [Account Settings, Tokens](https://vercel.com/account/settings/tokens) in Vercel.
>
> 2. Create a token. Pick the scope for the projects you want NOFire to read.
>
> 3. Copy the token now. You cannot view it again after you leave the page.
>
> > [!NOTE]
> >
> > Use a dedicated token named `nofire` so you can rotate or revoke it without touching other integrations.

> [accordion] Find the Team ID (optional)
>
> Find it in the team's Settings, General. A Full Account token needs it to read a team. A team or project token does not.

## Step 2: Add Vercel connection to NOFire AI

1. Open [Connections](https://my.nofire.ai/dashboard/connections) and click **Connect** on **Vercel**.
2. Fill in the form:
   * **Name**: defaults to `vercel` (for example, `production-vercel`)
   * **API token**: masked. Create one in Vercel under Account Settings, Tokens.
   * **Team ID (optional)**: for example, `team_...`
3. Click **Connect**.

NOFire checks the token before it saves the connection. It lists a project and the newest production deployment, then reads that deployment by ID. A connection saves only when the token can read what NOFire will read. A saved connection shows the toast **Connection created** followed by its name.

## Test the connection

1. Open [Connections](https://my.nofire.ai/dashboard/connections) and make sure that the Vercel connection shows **Connected**. A connection that shows **Failing** did not authenticate.
2. Ask NOFire a question that needs deploy context, for example "what shipped to production in the last day?". An answer that names your deployments confirms the connection works end to end.

## Troubleshooting

The form shows the toast **Vercel connection test failed** with one of these reasons.

> [accordion] Vercel rejected vercel\_api\_token: check that it is valid and has not expired
>
> The token is wrong, revoked, or expired. Create a new one under Account Settings, Tokens.

> [accordion] Vercel refused vercel\_team\_id: check the team id and that the token's scope includes that team
>
> The Team ID does not match, or the token's scope does not include that team.

> [accordion] The token cannot read this Vercel account: check its scope, or set vercel\_team\_id to the team to read
>
> A Full Account token reads your own account until you enter a **Team ID**. Add it to read a team.

> [accordion] The token sees no Vercel projects: check vercel\_team\_id
>
> The token reads an account or team with no projects. Check the **Team ID**.

> [accordion] No production deployment found: deploy a Vercel project to production, then test again
>
> NOFire only reads production. Deploy a project to production, then connect again.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.