Developer Experience

Staging, previews and rollbacks: how website changes should actually get shipped

If changes to your website go straight to the live site and there's no way back, that's a process problem rather than bad luck. Here's what a safe setup looks like in plain English.

Isaac··5 min read

Every change to your website should be visible somewhere private before it goes live, and reversible in minutes after it does. If your developer edits the live site directly and fixing a mistake means restoring last night's backup, you're one bad afternoon away from real lost revenue. The fix is a process, and it costs almost nothing to set up.

What actually goes wrong when changes go straight to live?

The classic version: someone updates a plugin on a Thursday afternoon, the checkout stops accepting payments, and nobody notices until Friday morning when the enquiries dry up. The site was never broken in an obvious way — no error page, no alarm. It quietly stopped working.

The cost is rarely the fix. It's the eighteen hours of traffic that arrived, found something odd and left. For a business doing meaningful volume online that's a real number, and it stays invisible unless you go looking.

Editing live also puts the pressure in the wrong place. Anyone changing something on a production site works slowly and carefully because the stakes are high, which makes small improvements expensive — so they stop happening.

What is staging, and do you need it?

A staging site is a private copy of your website where changes can be made and looked at before anyone else sees them. Same code, same content structure, different address, blocked from search engines. You open it, click around, and say yes or no.

The modern version is better. Instead of one permanent staging site that slowly drifts out of sync with production, each change gets its own temporary preview link. Two changes in flight at once don't contaminate each other, and the link dies when the work is merged.

For a five-page brochure site that changes twice a year, this is overkill. For anything with a booking system, a shop, a member area, or an integration into Xero or your POS, it's the difference between a controlled process and hoping.

  • Staging site. One long-lived copy. Workable, but it drifts from production unless someone refreshes it regularly.
  • Preview deployments. A fresh temporary URL per change. Standard on platforms like Vercel and Netlify, and available in most modern hosting setups.
  • Blocked from indexing. Any non-live copy must be password protected or noindexed, or you risk Google indexing a duplicate of your site.

How fast can you undo a change?

This is the question that separates a mature setup from a fragile one. Ask whoever looks after your site: if we push something now and it breaks, how long until we're back to how it was? The good answer is under five minutes and doesn't involve a backup file.

Rollback and restore are different things. A rollback re-points your site at the previous working version, which is near-instant and loses nothing. Restoring a backup rewinds the whole site, including any orders, form submissions or content added since the backup was taken.

Content and code need separating too. If your text and images live in a CMS, a content mistake should be fixable by editing the content, not by redeploying anything. If correcting a typo requires a developer and a deployment, that's a design flaw.

  • Instant rollback. Previous deployments stay available and can be promoted back to live in one action. This is standard on modern hosting.
  • Backups are the last resort. Still essential — but they're for disasters, not for Tuesday's bad release.
  • Know who can press the button. If only one contractor can roll back and they're on a plane, you don't have a rollback.

What should you check before something goes live?

You don't need to be technical to run a useful check. Open the preview link on your phone rather than your desktop, since that's where most of your visitors are. Then walk the paths that make you money.

For most New Zealand businesses that's a short list, and it takes five minutes.

  • Submit the contact form. Then confirm the enquiry actually arrived in the inbox it's meant to. Forms break silently more often than anything else on a website.
  • Complete a test booking or order. All the way through, including the confirmation email. Use a test payment mode if you have one.
  • Check the pages that bring in traffic. Your top five pages in Google Analytics or Search Console, not the homepage alone.
  • Look at it on mobile data. Office wifi hides slow loading. A visitor in rural Southland doesn't have your connection.

What should you ask whoever looks after your site?

You're not auditing anyone's code. You're checking that a process exists and that you aren't the single point of failure in it. Four questions cover most of it.

If the answers are vague, that's the finding. A capable developer will have short, specific answers to all four, because they've needed them.

  • Where do I see changes before they go live? There should be a link. Not a screenshot, not a description.
  • How do we roll back, and how long does it take? Minutes, not hours. And it shouldn't mean losing recent orders or enquiries.
  • Who else can deploy if you're unavailable? Access to the code repository, hosting and domain should sit in accounts your business owns.
  • How will we know if something breaks at 2am? Uptime monitoring and error alerting cost very little and turn a lost weekend into a text message.

None of this is exotic. Preview links, one-action rollbacks and a five-minute pre-launch check are ordinary practice on modern hosting, and they're the difference between website changes being routine and website changes being a risk you avoid. If every update currently feels like a small gamble, we can help you sort out how your website gets built and deployed so shipping a change stops being the scary part.

Frequently asked questions

What is a staging site?

A staging site is a private copy of your website used to review changes before they go live. It runs the same code and structure as your real site but sits on a different address, is blocked from search engines, and is usually password protected. You use it to click through and approve work before anyone else can see it.

What is the difference between a rollback and restoring a backup?

A rollback switches your live site back to the previous working version of the code. It's near-instant and doesn't affect orders, enquiries or content added since. Restoring a backup rewinds the entire site including its database, so anything that happened after the backup was taken is lost. Rollback is for a bad release; backups are for genuine disasters.

Does a small business website really need a staging environment?

If your site is a handful of pages that change once or twice a year, a preview link at the time of the change is enough. If it takes bookings or payments, or connects to systems like Xero or your point-of-sale, then yes. Setting it up is inexpensive and a single broken checkout usually costs more.

How do I stop Google indexing my staging site?

Password protect it, or serve a noindex header across the whole environment. Most modern hosting platforms offer deployment protection that requires a login for anything that isn't the production site. Relying on robots.txt alone isn't enough, because a linked page can still end up indexed.

Who should own the hosting and domain accounts?

Your business, in accounts registered to your own email address, with your developer added as a collaborator. That covers the domain registrar, the hosting platform and the code repository. If those accounts sit under a contractor's personal login, changing providers or recovering from a dispute becomes slow and expensive.

Share this article

#deployment#staging#hosting#web development#nz business