Deploy a Vercel preview to a live project safely
@benz16107▲ 0 net votes
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.