Watch: Give my app a staging site before production | Vovy
Watch Vovy do it on a Mac: "Set up a staging branch on staging.mydomain.com that deploys before production". Create a staging branch with its own URL, env vars and test database, so every change gets checked before it reaches real users.
"Set up a staging branch on staging.mydomain.com that deploys before production"
Create a staging branch with its own URL, env vars and test database, so every change gets checked before it reaches real users.
What happens in the video
- Create a staging branch: Vovy creates a staging branch in GitHub from your main branch and pushes it.
- Give it a fixed domain: In Vercel's Domains page, Vovy adds staging.yourdomain.com and assigns it to the staging Git branch so it always shows the latest staging build.
- Point staging at test services: Vovy sets Preview env vars for the staging branch to use a separate test database and Stripe test keys, so testing never touches real data.
- Add the DNS record: Vovy asks, then adds a CNAME for staging with the value Vercel shows.
- Show the workflow: A flow card shows the path: feature branch, then staging, then main. Vovy explains how to merge each step on GitHub.
Read the step-by-step guideLoading...