Skip to content

Use perafly.jsonc instead of vercel.json

What the config_file_not_allowed error from the Perafly API means and what to do about it.

On this page
Code
config_file_not_allowed
HTTP status
422

What it means

The version contains vercel.json or now.json. Perafly generates the hosting configuration itself and doesn't accept these files.

A typical detail: Redirects, rewrites, headers and crons go in perafly.jsonc; Perafly generates the hosting configuration.

What to do

Move redirects, rewrites, headers and cron jobs to perafly.jsonc, which uses the same field names, and remove the file.

Read more: perafly.jsonc

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/config_file_not_allowed",
  "title": "Use perafly.jsonc instead of vercel.json",
  "status": 422,
  "code": "config_file_not_allowed",
  "detail": "Redirects, rewrites, headers and crons go in perafly.jsonc; Perafly generates the hosting configuration.",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes