Dev workflow and DevOps · Concept

Staging, preview and production

Separate copies of an app for different stages: development on a laptop, previews and staging for testing, and production for real users.

Environments · updated

How it works

Production is the live app that real customers use. Staging is a copy set up as close to production as possible, with its own database, keys and test payment accounts, where a release is checked before it goes out. Preview deployments are short-lived copies built for each pull request, each at its own URL, so a reviewer or client can click through a change before it is merged.

Vercel, Netlify and Cloudflare Pages create previews automatically. The environments differ mainly in their environment variables, and keeping them apart matters: a staging site pointed at the production database, or test emails sent to real customers, are classic accidents. Previews of unfinished work are best kept out of search engines, and behind a password where needed.

More in Dev workflow and DevOps

Environments

All 21 Dev workflow and DevOps terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.