Back to Vercel

No Single File Deployments

errors/no-single-file-deployments.md

16.1.2467 B
Original Source

No Single File Deployments

Why This Error Occurred

You attempted to create a Vercel deployment where the input is a file, rather than a directory. Previously this was allowed, however this behavior has been removed as of Vercel CLI v24.0.0 because it exposed a potential security risk if the user accidentally created a deployment from a sensitive file.

Possible Ways to Fix It

  • Run the vercel deploy command against a directory, instead of a file.