Standard Protection excludes production domains by design — that is clearly documented, and support confirmed it. This is not a bug report. It is about where the CLI tells you this, and where it does not.
After vercel --prod, the CLI prints:
! Deployment Protection is on for this project (Vercel Authentication).
Use vercel curl to access it.
For a production deployment this is literally true and practically misleading. Protection is on for the project. But the deployment that was just created is a production one, so Standard Protection does not cover it, and the URL that was just printed above the message is publicly readable. The line reads as "what you just published is private." It is the opposite.
How I found out: I ran vercel --prod from a parent directory by mistake. No framework was detected, the directory was served statically, and internal .md and .sql files — database schema and RLS policies — returned HTTP 200 on a public URL. I saw that message in the output and assumed the deployment was gated. I checked anyway, which is the only reason I found it within minutes.
Two things would have helped, both small:
Make the message scope-aware. When the deploy is --prod and the scope is Standard Protection, say so:
! Deployment Protection: Vercel Authentication (Standard Protection). Production domains are NOT protected by this scope — this deployment is publicly accessible. The useful signal is not "protection exists somewhere in the settings", it is "this URL, the one printed above, is or is not public."
Warn when --prod creates a brand-new project. Creating a project and publishing to production are usually separate intentions. A line like "No existing project linked. This will create and deploy it to production" would catch the wrong-directory mistake before anything is served, not after.
The second one is what actually cost me. The first is what stopped me from realising it immediately.