require-vercel-build-command
Require a non-empty buildCommand in vercel.json.
Targeted pattern scopeâ
- Top-level
buildCommandinvercel.json. - Missing or empty
buildCommandvalues.
What this rule reportsâ
This rule reports Vercel config files that do not explicitly define the build command.
Why this rule existsâ
Vercel can auto-detect build behavior, but explicit commands are easier to
review and keep consistent across environments. Committing buildCommand
reduces dashboard-only or framework-default drift.
â Incorrectâ
{
"cleanUrls": true
}
â Correctâ
{
"buildCommand": "npm run build",
"cleanUrls": true
}
When not to use itâ
Disable this rule if your repository intentionally relies on Vercel's auto-detected build command behavior.
Rule catalog ID: R078