How a build moves through staging to production
AWS lists what happens at this stage:
Staging has no build step: it reuses the same artifacts that passed the testing environment.
Staging data should be similar in scope and size to production workloads.
The deployment steps include a pause for manual approval by designated people.
Besides verification, staging is the preferred place for business previews and customer demonstrations.
Azure uses a different mechanism. In Azure App Service, staging is implemented as deployment slots, which are live apps with their own host names. A nonproduction slot lets teams validate changes before swapping the slot into production. If a swapped release misbehaves, swapping again immediately restores the last known good site.
Keeping a staging site out of search results
Search brings two risks. The staging host can get indexed, or its blocks can be carried into production. Three controls apply:
Password protection. Google says password-protecting content limits access to authorized users and also keeps that content out of Google Search, which suits non-public staging sites.
robots.txt. It controls crawler access, not indexing: a blocked URL can still be indexed without a description if other pages link to it.noindex. If you usenoindexrules during development, Google advises listing the URLs they cover so you can remove the rules when the site move starts and the redirects go live.
Google notes that some site owners block all crawling of a new site while it is in development, and tells them to prepare the launch robots.txt in advance.
For the tooling side of a site move, see tools for a successful website migration.
Staging in a Pagepro launch
Before the DNS switch, Pagepro prepares the split between the Sanity staging and production datasets. Pagepro's Next.js and Sanity migrations run on Nexity.
Sources
- Staging environment - AWS Prescriptive GuidanceAWS · docs.aws.amazon.com
- What is the Staging Environment? (Commerce Server)Microsoft Learn (legacy Commerce Server docs) · learn.microsoft.com
- Set up staging environments in Azure App ServiceMicrosoft Learn · learn.microsoft.com
- Control what you share with GoogleGoogle Search Central · developers.google.com
- Robots.txt Introduction and GuideGoogle · developers.google.com
- Site Moves and MigrationsGoogle · developers.google.com