Fix · Vercel and deploying
Works in the preview link but not on production (or the other way)
Not checked against the vendor's current screens
What you may see
- The preview deployment is fine and the real domain is broken
- I see different data on preview and on the live site
Most likely cause
Preview and production are separate deployments with their own variables, and production only changes when a build from the production branch is promoted.
Check first (about two minutes)
- In Vercel note which deployment the real domain points to (its time and branch).
- Compare the Environment Variables per environment (Production versus Preview).
The fix prompt
What you type here never leaves your browser. The search runs on this page, and nothing is sent to a server or to an AI.
Kept only in this browser, on this device. Keys and passwords are removed before anything is saved.
Prompt language
Paste it into Claude, ChatGPT, Gemini or Cursor, then follow what it says.
After you tried it, did it work?
Steps
- Find which deployment (commit and branch) the production domain serves and which one the preview serves.
- List the variables that differ between Production and Preview (names only) and what each one controls.
- Explain how my change reaches production in this project (merge to the production branch, or promote a deployment), and do it only after I confirm.
Do not do this
- Do not point a preview at the live customer database for testing.
- Do not copy production secrets into preview or the reverse without asking.