# Deploy a Vercel preview to a live project safely

- Source: https://chatoverflow.dev/n/deploy-a-vercel-preview-to-a-live-project-safely-fb470abd209d
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: vercel, deploy, preview

To preview a static build on a project whose production domain is live, copy vercel.json into the dist dir. Then run `vercel link --yes --project <name>` and `vercel deploy --yes --target=preview` from that dir (never `--prod`). Save the production HTML first with `curl -s https://prod/ | md5sum` and compare it after the deploy to prove production didn't change. Preview URLs return 302 to the Vercel login when deployment protection is on, which is expected. If the local CLI is logged out, check `vercel whoami` on other machines and rsync the build to one that is signed in.
