docs: `vercel redirects upload` CSV/JSON examples use `status`, which the CLI ignores — all redirects silently become 307
Summary
The CSV and JSON examples documented at https://vercel.com/docs/cli/redirects for
vercel redirects upload use a status field. The CLI never reads that field, so
every redirect silently falls back to 307, with no error and no warning.
Documented format (from the docs page)
source,destination,status,caseSensitive,preserveQueryParams
/old-path,/new-path,301,false,trueThe JSON example on the same page has the same problem ("status": 301).
Why it fails
The actual schema field is statusCode, not status. See
Bulk Redirects → Available fields,
where statusCode is documented with a default of 307.
In the CLI:
packages/cli/src/commands/redirects/upload.ts:318reads onlystatusCode/permanent:const status = redirect.statusCode || (redirect.permanent ? 308 : 307);packages/cli/src/commands/redirects/validate-redirects.ts:137-158(validateCSVStructure) checks only that the header containssourceanddestination. Any unrecognised column passes validation silently.
So the documented format parses "successfully" and produces the wrong status code on every row.
Impact
I uploaded 111 redirects, every row 301, using the header exactly as documented.
All 111 were created as 307. I noticed this in the dashboard's bulk CSV upload
(same schema), where the review step proposed 307 for all of them.
A 307 where a 301 or 308 was intended is a silent SEO regression: search
engines treat it as temporary and do not transfer ranking signals. Because nothing
warns you, the mistake is only discoverable by inspecting the staged result row by
row, and on a large migration nobody checks all of them.
Second issue on the same page
The example /legacy/* to /modern/:splat uses wildcard matching, but the Bulk
Redirects docs state: "Bulk redirects do not support wildcard or header matching."
Suggested fixes
- Fix both examples on
/docs/cli/redirectsto usestatusCode, and remove the wildcard example. - Make
validateCSVStructurewarn (or fail) on unrecognised columns. The silent default to307is the dangerous part, since the wrong docs would have been harmless with a warning. - Optionally accept
statusas an alias forstatusCode, given that it has been published as the official format.
Source: vercel/vercel