Vercel Projects icon

Vercel Projects

Manage Vercel projects via the Vercel REST API

Update Project

AI-generated

Summary

Updates settings of an existing Vercel project by sending a PATCH to the Vercel REST API (/v9/projects/{idOrName}) with only the build-related fields you fill in.

Inputs

  • projectIdOrName (required) — ID or name of the project to update. It is URL-encoded in the request path.
  • framework — Framework preset (e.g. nextjs, vite, nuxt). Sent only if non-empty.
  • buildCommand — Override for the build command. Sent only if non-empty.
  • outputDirectory — Override for the output directory. Sent only if non-empty.
  • installCommand — Override for the install command. Sent only if non-empty.
  • rootDirectory — Root directory in the repository. Sent only if non-empty.

Output shape

One output item per input item, containing the JSON response from Vercel (the updated project object), paired to the input item.

At least one of the optional fields must be non-empty, otherwise the item errors with 'At least one field must be provided to update.' Blank fields are omitted, so you cannot clear a setting by leaving it empty. With Continue On Fail enabled, failed items return {error: message}. The team ID comes from the credentials (or a teamIdOverride parameter read by the code but not declared in this operation's properties) and is passed as the teamId query string.

Examples

Example 1: Change the build command and output directory of a project named my-site.

Project ID or Name = my-site; Build Command = npm run build:prod; Output Directory = dist

Example 2: Switch a project's framework preset to Next.js, using a project ID from a previous node.

Project ID or Name = {{ $json.id }}; Framework = nextjs

Links

Discussion