Staging vs preview environments: What's the difference?

Say your team is building a grocery delivery app. You've just finished a new delivery slot picker on the checkout screen, and the product owner wants to try it before it goes any further. The only place they can see it is staging, where it lands together with everything else merged this week: a colleague's promo code fix, a new onboarding flow and a handful of smaller changes.
So you merge your branch, wait for the pipeline to deploy it and ask everyone to test the mix. The product owner sees your change for the first time, and it isn't quite what they had in mind. Checkout also breaks, and now three developers are trying to work out whose change caused it. On mobile, there's an extra wait before anyone can even start testing: the new build has to reach the testers' phones, and everyone has to install the update.
None of this means staging is broken. It means staging is doing a job it wasn't designed for. This guide compares staging vs preview environments: what each one is, how they differ, how they work together and what changes when your product is a Flutter app on a real phone.
What you'll learn:
- What a staging environment and a preview environment are, in plain terms.
- The key differences: shared vs isolated, long-lived vs ephemeral, after merge vs before merge.
- Why most teams need both, and where each one fits in the workflow.
- How preview environments work for Flutter apps on iOS and Android.
What is a staging environment?
A staging environment is usually a shared, long-lived, production-like environment where a team validates integrated code or a release candidate before release. Its job is to answer one question: does everything work together, the way it will in production?
Staging usually mirrors production as closely as the budget allows: similar infrastructure and production-like behavior, with test data, separate credentials and, where appropriate, sandbox versions of third-party services. You'll also hear it called pre-production, pre-prod or, in some teams, the UAT environment.
How a staging environment works
- Merge: a feature branch is reviewed and merged into main or a develop branch.
- Deploy: your CI/CD pipeline builds the latest version and deploys it to staging, automatically or on demand.
- Test: QA runs regression tests, product owners do acceptance checks and the team verifies migrations and integrations.
- Promote: once the release candidate passes and the team decides to move forward with it, it goes to production.
That makes staging the right place for a specific set of jobs:
- Integration testing: many changes and several services, running together in one place.
- Release candidate checks: regression tests on the release you're about to ship.
- Infrastructure and data changes: database migrations, configuration and third-party integrations.
- Final sign-off: the last look before customers see the release.
What staging means for mobile apps
On a mobile team, staging usually means two things. There's a staging backend, and there's a staging build of the app that points at it. In Flutter, that build is typically a separate flavor, distributed to testers through TestFlight, Firebase App Distribution or Google Play internal testing.
To test a change on staging, reviewers install or update that build on their phones. Every change to the app itself needs a new build, and testers have to install it before they can see the change.
What is a preview environment?
A preview environment is typically a short-lived, branch-specific deployment used to review a version of an app before merge. It often has its own link, but may share backend services and data with other previews. Its job is to answer a different question: is this the right change?
When configured, each branch or pull request can get its own preview, which is usually removed when the work is done. That's why preview environments are also called ephemeral environments. Depending on the platform, you'll see them as deploy previews, preview deployments, review apps or PR environments.
For a deeper introduction, read What are preview environments?
How a preview environment works
- Push: a developer pushes a branch or opens a pull request.
- Build: an automated step builds that branch and creates an environment for it.
- Share: the team gets a unique link, often posted straight into the pull request.
- Review: someone tries the change and leaves feedback while the code is still open.
- Clean up: the preview is removed when the pull request closes or after a retention period.
On the web, this is standard practice. Vercel and Netlify can create distinct preview URLs for pull requests, and teams can implement similar workflows on Kubernetes. Some tools also let a developer publish a preview straight from their own machine, before a pull request even exists.
The benefit is who gets to see the work, and when:
- Product owner: decides on a working feature instead of a screenshot.
- Designer: checks spacing and motion on the real thing.
- QA engineer: tests one change on its own, before it's mixed with anything else.
Staging vs preview environments: the key differences
The short version: staging tests your release, and a preview environment tests your change. Here's how that plays out in practice.
| Aspect | Staging environment | Preview environment |
|---|---|---|
| What it holds | Integrated code or release candidate | A version built from one branch or PR |
| Question it answers | Does the release work? | Is this the right change? |
| Lifespan | Long-lived, always on | Short-lived, cleaned up after review |
| How many | Often one shared environment per team or product | One per active branch or PR |
| When in the workflow | Often after merge, before release | Usually before merge, while the code is still open |
| Typical reviewers | QA, release owners, final product sign-off | Product owners, designers, QA engineers, clients, other developers |
| Cost of a change found here | Another review and deploy cycle | A new commit on the same branch |
Shared vs isolated
Staging is one environment for everyone. That's its strength for integration testing and its weakness for feedback. While your delivery slot picker sits on staging, so do the promo code fix and the onboarding flow. If checkout breaks, the first job is working out whose change did it.
A preview environment holds one change. When the product owner opens the delivery slots preview, they see exactly that branch and nothing else. Three branches means three links, and nobody waits in line.

Long-lived vs short-lived
Staging runs all the time, so someone has to keep it healthy: configuration drift, stale data, a deploy that half-failed on Friday afternoon. A preview environment is created for one branch and removed after, so its code and configuration start clean, with no drift to fix.
The trade-off is setup. You need a repeatable publishing or provisioning process and, where previews consume persistent resources, a retention policy that cleans them up.
After merge vs before merge
This is the difference that matters most for feedback. A change reaches staging after review and merge, when the developer has usually moved on to the next task. Any change of direction means a new branch, another review and another deploy.
A preview arrives while the code is still open. If the product owner wants the delivery slots in a list rather than a grid, the developer changes it on the same branch and shares a new preview. Feedback is cheaper because the work isn't finished yet.
Where shared staging slows feedback down
Staging works well as a final check. It gets painful when it becomes the only place where anyone outside engineering can see a change. You'll probably recognize the signs:
- A mix you can't untangle: everything merged since the last release lands on staging at once, so it's hard to tell which change you're actually testing.
- "Who broke staging?": several unfinished changes share one environment, so one bug blocks everyone's review.
- Feedback after the fact: the product owner sees the feature after it's merged, so every change of direction becomes a follow-up ticket.
- Screenshots instead of the product: to skip the wait, developers send screenshots and screen recordings, and decisions get made on those.
None of this means you should get rid of staging. It means staging is carrying feedback work that belongs earlier in the process.
Do preview environments replace staging?
Usually not. Preview environments and staging answer different questions, so most teams that add previews keep staging where it is.
A preview usually focuses on one branch, which is useful for early feedback but doesn't necessarily validate the full release. With an isolated database, a preview can also test migrations. Staging is valuable for checking the combined release candidate; load testing may take place there or in a dedicated performance environment.
How staging and preview environments work together
In practice, both fit into one workflow:
- Branch: you build the change.
- Preview environment: the product owner, designer and QA engineer try it, and you iterate on the same branch.
- PR review: reviewers check the code, already knowing the change is the right one.
- Merge: the change goes into main.
- Staging: QA runs regression tests on the release candidate, with everything else that's going out.
- Production: the release reaches your users.

Previews move feedback earlier. Staging still guards the release. The more feedback you collect in step 2, the fewer surprises reach step 5.
What preview environments make harder
Previews come with costs of their own, though none of them are deal-breakers:
- Backends and data: each preview needs something to talk to. Teams either create a backend per preview or point previews at a shared test backend, often staging.
- Setup: creating and distributing previews needs a repeatable process, often automated, and on mobile it's harder, because an app has to be built, signed and installed before anyone can open it.
- Cleanup and cost: previews that never expire add up, so you need a retention policy.
Use a preview environment when
- You need feedback on one change: a new screen, a copy update or a flow the product owner wants to walk through.
- You're comparing options: two versions of the delivery slot picker, one link each.
- QA needs to verify a fix before merge: the fix is tested on its own branch, not after it lands on main.
- A client or stakeholder wants to see work in progress: without waiting for the next release.
- Code review needs context: the reviewer can try the behavior, not just read the diff.
Use staging when
- You're testing the release as a whole: regression tests on the release candidate.
- A change touches several services: staging checks how the app, backend and third-party integrations work together in the integrated release candidate.
- Infrastructure or data is changing: migrations, new configuration or new environment variables need checking against production-like data and the rest of the release.
- You need formal sign-off: acceptance or compliance checks before release.
- You're preparing a store submission: a final check of the release before you build and submit it to the App Store and Google Play.
Staging and preview environments for Flutter apps
On the web, a preview is just a URL. A native iOS or Android app has no URL to open. A Flutter app has to be compiled, signed, distributed and installed before anyone can tap through it on a phone.
That's why previews are common on the web and still rare in mobile teams. Getting one change onto a product owner's phone usually looks like this:
- Open a PR and wait for review and approval.
- Merge, so CI picks up the change.
- Wait for CI to build and sign the staging flavor.
- Upload the build to TestFlight, Firebase App Distribution or Google Play internal testing, then wait for processing.
- The product owner installs the update and finds the right screen.
That takes hours, sometimes a day. And it brings back the shared staging problem: one installed build, carrying whatever was merged last.
Preview environments for Flutter apps with Flitz
This is the gap we built Flitz for. Flitz brings preview environments to Flutter apps, so the people who decide on a change can try it on their own phone while the developer is still working on it.
For the business, that changes when decisions happen. Today, a finished change usually waits about a day before a product owner, designer or client can open it. With Flitz, the change reaches the product owner's phone as a link or a QR code under 3 minutes after it's ready. They approve it or ask for changes the same day.

None of this changes how you ship. PR review, CI, staging, TestFlight and the stores stay where they are, and your release process stays as it is. Flitz adds an earlier feedback step in front of it: reviewers install your Flitz-enabled app once, through the channels you already use, and every new preview opens inside it.
Conclusion
Staging and preview environments aren't competing options. Staging is where your release proves it works with everything else. A preview environment is where a single change proves it's the right one, while the code is still open and changes are cheap.
If staging has become your team's only window into work in progress, that's a signal to add previews, not to remove staging. Give each branch its own link, collect feedback before the merge and let staging do the job it was built for.


