Back to Vercel API
Vercel API

deploymentPolicy.gitSources and deploymentSources changed from object to array

BreakingBreaking change

This is a breaking change — integrations that rely on the affected behaviour will need updates before the change rolls out.

What changed

The gitSources and deployment sources policy fields have changed from a single object (type: object) to an array (type: array). This is a breaking shape change: clients that read or write these fields as a plain object will fail against the new schema, which expects an array of objects. Additionally, the id field previously present on the sources object has been removed, and environments is now a required field alongside enabled and sources.

Open the source documentation