Why Neatploy has staging environments, not pull request previews
We decided against a temporary environment per pull request. One staging environment that tracks a branch is simpler to run, cheaper, and closer to production.

Per-pull-request preview environments are one of the most requested features on any deployment platform. We designed them, wrote down the rules, and then decided not to build them. On 1 December we made it official: Neatploy gives you staging environments instead.
This post explains why, and how staging covers the same need with less to think about.
What previews cost you
A preview environment sounds free: open a pull request, get a URL. In practice it raises questions every team has to answer:
- Which services rebuild? A pull request that touches the API shouldn't rebuild the front end, but working that out from changed paths is guesswork once a repository holds more than one app.
- What data does it use? A preview database that starts empty can't show a realistic page. One that copies production data spreads customer data into short-lived environments that nobody watches.
- Who pays for it? Ten open pull requests can mean ten copies of your stack, each with its own database, quietly using credit.
- When does it go away? Stale previews pile up unless there are caps, timeouts and clean-up jobs, and each of those is one more rule to explain.
None of these problems is unsolvable, but every answer adds settings. Neatploy is built for people who want their app online without learning a platform, so we'd rather not hand them that list.
What you get instead
Every project starts with a production environment that deploys your repository's default branch. When you want somewhere to try changes first, Add staging asks for one thing: the branch it should track.
- It copies production's services, settings and variables, so staging works straight away. Change a secret or give it less memory without touching production.
- It has its own private network. Services in staging reach each other over
<service>.internaland can never reach production's databases. - Its databases keep their data. Seed staging once and it stays useful, instead of starting empty on every pull request.
- It is never indexed by search engines. Every non-production environment sends
X-Robots-Tag: noindexby default. - It can sit behind a password. One switch on the Environments page puts HTTP Basic authentication in front of every hostname in that environment, so unreleased work isn't public to anyone who finds the URL.
Services belong to the environments you add them to. Creating a worker in staging doesn't put it in production; it gets there when you add it, copying its settings from an environment it's already in. A push to develop deploys only where a service tracks develop.
A workflow that fits most teams
- Work on feature branches as usual and merge them into
develop. - Every push to
developdeploys staging. Share its URL, or its password, with whoever needs to review. - When staging looks right, merge
developintomainand production deploys with the same zero-downtime swap.
One stable URL is easier to share than a new one per pull request, and a reviewer always knows where to look.
When you need more than one
Staging isn't limited to one per project. If two efforts need to be reviewed at the same time, create another environment, copy it from staging or production, and point it at a different branch. Delete it when you're done: deletes are immediate and permanent, so nothing lingers on your bill.
Read the environments guide for the details, or see how deployments move from a push to live traffic.