Preview deployments and the Pull Request workflow
Every change has its own address
A Preview deployment is a full, working deployment of your branch under a unique URL — before anything reaches production. This is one of Vercel's strongest features: the reviewer clicks the link and sees the working change, not just the diff.
How it works with a PR
- You create a branch and push it to GitHub.
- You open a Pull Request to
main. - Vercel automatically builds a Preview and adds a comment in the PR with the link.
- Each new commit in the PR generates a fresh preview under the same entry.
- After merging into
main, Vercel builds Production.
git switch -c feature/raporty-mfa
# ...changes...
git push -u origin feature/raporty-mfa
# Open the PR -> Vercel links the preview in a comment by itself
What a preview gives code review
| Benefit | Why it matters |
|---|---|
| Visual verification | The reviewer sees the UI, not just the code |
| Manual testing | You click the feature live before merge |
| Demo for the product owner | Sign-off on the change before production |
| Isolation | The preview does not touch production data (with a separate env) |
Tip: Paste the preview link into the PR thread and describe what specifically is worth clicking through ("check the MFA widget on the dashboard"). This shortens review time and raises its quality.
Environment variables and the preview
Vercel lets you assign variables separately per environment: Production, Preview, Development. This way a preview can point to a test backend, not a production one.
NEXT_PUBLIC_API_URL (Production) = https://api.zeus.example.com
NEXT_PUBLIC_API_URL (Preview) = https://api-staging.zeus.example.com
Comments and the Vercel Toolbar
On the preview a Vercel Toolbar bar appears, letting you leave comments directly on a page element. The notes go back to the PR — the reviewer can point out "this button is too small" by clicking it, without writing a separate comment in the code.
The ProfessNet workflow in brief
- A
feature/...branch → push. - PR to
main→ Vercel builds a preview. - CI (GitHub Actions) runs the tests and lint.
- The reviewer reviews the code and clicks the preview.
- Green CI + approve → merge.
- Vercel deploys production from
main.
Summary
Preview deployments turn review into a visual experience: every PR has a working URL with a separate environment. This connects Git, GitHub Actions, and Vercel into one smooth flow — the reviewer evaluates the change before touching production.