Skip to content

Taking over someone else's codebase without breaking it

A healthcare practice handed us a website someone else built. What we fixed first, and how every step after kept a way back.

A ring of old mismatched keys on a blue surface, one of them new and blue

When a multi-site healthcare practice came to us in 2023, its website was a React app that someone else had built. Publishing a change meant asking a developer to run a deploy script. There were no drafts, no preview and no way to schedule anything.

Nothing was obviously broken, and that’s what makes an inherited system tricky. With no failure to point at, the first job is finding out what can be changed safely while the site stays up.

The first month went into the foundations

The site couldn’t be rebuilt the same way twice, and a key to the live system sat in the code. In the first month we took the key out, locked down the build and made deploys repeatable, so any later change could be made and undone on purpose. Patients wouldn’t have noticed any of it, and everything after depended on it.

Why search engines saw a blank page

A typical React app builds each page in the visitor’s browser. The server sends an empty shell, and JavaScript then fetches the content and draws it in. People see a finished page a moment later. Search engines often read the shell, which has no content and no proper title or description.

The fix is to build the pages ahead of time. We first moved the site to Gatsby, which turns each page into finished HTML when the site is built. Search engines could read it after that, but the browser still fetched everything a second time on every visit, so the site still depended on the back end being up.

In 2026 we rebuilt it on Astro, with one rule the practice cared about most: nothing gets fetched while a patient is browsing. Content is pulled in once, at build time, and the site is plain HTML served from a CDN. The few interactive pieces load on their own, and the rest of the page carries no JavaScript. If the back end goes down, patients don’t notice. The practice never asked for a redesign, so every rebuild had to match the live site pixel for pixel.

Why the editors needed a real CMS

Content lived in the Django admin, a screen built for developers to look at database rows. It had no drafts, preview, scheduling or media library, and in places editors typed raw HTML. We kept hand-building editing features into it until the workarounds were the clearest sign it needed replacing.

In June 2026 the editors moved to Wagtail, a content management system built on Django, with drafts, revisions, preview, scheduled publishing and editor roles. Django’s own version had just lost support, so an upgrade was coming anyway. We bundled the two so the practice paid for one migration instead of two, and shipped the upgrade on its own first so any fallout stayed separate.

Every step kept a way back

The old back end stayed running, frozen, and switching the site back to it meant changing one setting. The content move copied records and never deleted any. The old data stayed in place for a month after the switch, along with a database snapshot.

Where the practice is now

When an editor hits publish, the site rebuilds itself. Every build is checked first, so a change that would break the site stops there instead of reaching patients. Patients see the same site. Editors no longer wait on a developer.

What we’d tell anyone taking over a working system

Make it reproducible first and keep a way back from every step. Before agreeing on new features with an incoming team, ask them to publish a change and roll it back in front of you.

A buyer runs a similar review before a deal, which we cover in what technical due diligence checks. The healthcare practice case study has the full timeline. If you’ve inherited a system like this, tell us about it.

Have a project like this?

Tell us what you have and what it needs to do. We usually reply within 24 hours.

Start a conversation →