SleepDr.com, a sleep medicine provider in Redlands, California, moved from WordPress to Next.js 15, Payload CMS 3, Supabase and Vercel in a rebuild planned for four weeks. The website never receives patient data. In lab testing, its mobile Lighthouse performance score rose from 35 to 94, and the practice's CEO left us a verified 5.0 review on Clutch.

TL;DR

  • Client: SleepDr.com, a California home sleep test provider whose WordPress site carried years of SEO authority it couldn't afford to lose.
  • Stack: Next.js 15 (App Router), self-hosted Payload CMS 3, Supabase (PostgreSQL) and Vercel Pro, all on accounts the client owns.
  • HIPAA approach: every form that could carry protected health information (PHI) runs on the client's own Jotform HIPAA account, so the site and CMS never receive it.
  • SEO: a full crawl, a URL inventory, a 301 redirect map with every page retirement signed off, medical schema and hreflang across five languages.
  • Result: mobile Lighthouse lab score from 35 to 94, plus 20 city landing pages and a rebuilt blog subscriber system.

At a glance

Client SleepDr.com, sleep medicine provider, Redlands, California
Old platform WordPress
New stack Next.js 15 (App Router), Payload CMS 3, Supabase (PostgreSQL), Vercel Pro
Schedule Kickoff week of 31 March 2026, delivery deadline 30 April 2026
Patient forms Client's own Jotform HIPAA account, embedded in the site
Languages English, Spanish, Korean, Chinese and Armenian, with hreflang
New pages 20 California city landing pages
Editing Block-based page builder with eight reusable blocks, live preview, Editor and Admin roles
Headline result Mobile Lighthouse performance 35 to 94 (lab score)
After launch Ongoing SEO partnership from 1 May 2026

The SleepDr.com homepage, offering home sleep tests across California The live SleepDr.com homepage on Next.js and Payload CMS, built by Social Animal. Captured 28 November 2026.

The client and the problem

SleepDr describes itself as California's trusted home sleep test provider since 1994. The model is specific: a licensed provider must order a sleep test before a kit ships, the practice sends FDA-approved devices to patients' homes, and a board-certified sleep physician interprets the results. It serves patients throughout California. So the website isn't a brochure. It's the front door for patients across a large state, many of whom don't speak English as a first language.

The brief we were handed had six parts, and they pulled in different directions:

  • Keep the SEO authority. The WordPress site had years of rankings behind it. A rebuild that lost them would be a bad trade.
  • Fix the blog subscription. The signup returned a 404. There were no working new-post emails and no unsubscribe management.
  • Keep patient data off the website. As a healthcare provider, anything carrying patient information had to go through HIPAA-compliant tools.
  • Retire old content. The CEO wanted outdated pages and posts gone without damaging rankings.
  • Keep the multilingual structure. The site serves patients in several languages, and that had to survive the move.
  • Let staff edit. People without a developer needed to be able to change the site themselves.

The constraints

Time was the tightest constraint. Kickoff was the week of 31 March 2026, and the delivery deadline was 30 April 2026. Then came the unavailable week. The client was also unavailable from 15 to 22 April, so the plan was built around that week: anything that needed the practice's input or sign-off had to land either side of it.

The other constraints came from the brief itself. A healthcare site carries more compliance risk than most marketing sites. Years of rankings make careless URL changes costly. A five-language site multiplies every content and SEO task by five. And an editing model that only works for developers would have failed the last requirement on day one.

The decisions and the trade-offs

Each decision below had a credible alternative. Here's what we chose, what we didn't, and what it cost.

Decision What we chose What we passed on The trade-off
HIPAA scope Patient forms on the client's Jotform HIPAA account Hosting the whole site on a HIPAA-eligible plan Intake lives in a third-party tool, but there's no HIPAA hosting add-on and a far smaller compliance surface
Platform Next.js 15 with self-hosted Payload CMS 3 Tuning WordPress, or headless WordPress Editors learn a new admin, in exchange for one codebase that handles the blocks, languages and data model the brief needed
Editing Eight reusable blocks with live preview and roles Fixed templates that need a developer for new pages Layout freedom is deliberately limited to what the blocks allow
Ownership Client owns repo, hosting, database, forms and data Agency-held accounts More setup at handover, no lock-in afterwards
Design Two directions presented early One direction, iterated More early design work, fewer late surprises on a tight deadline
Privacy Minimal policy, Global Privacy Control, no unnecessary trackers A default stack of marketing scripts Less tracking data, in line with keeping PHI out of analytics

1. Keep the website out of HIPAA scope

We rejected the blunt route. That meant putting the whole site on a HIPAA-eligible hosting plan and treating every page and form, and every system behind them, as potentially sensitive. Instead, every form that could carry protected health information runs on the client's own Jotform HIPAA account. The website and the CMS never receive PHI.

A six-point rule kept the site out of scope:

  1. Patient forms are hosted by Jotform.
  2. No PHI in the general contact form.
  3. A disclaimer on every contact point.
  4. No file uploads on the site.
  5. No PHI in the CMS.
  6. No PHI in analytics or logs.

Jotform suits this setup. Its HIPAA forms can be embedded in a website through iframes, lightboxes or popups. Enabling it requires a Gold or Enterprise plan and a signed Business Associate Agreement. Submissions are encrypted in transfer and storage, and notification emails contain no submission data, so sensitive data does not leak into an inbox.

The trade-off is real. Patient intake sits in a third-party form tool rather than a native form on the site. In return, the practice pays for no HIPAA hosting add-on and has far less of the website to keep compliant. Jotform itself notes that it isn't a law firm and isn't giving legal advice. Neither are we. The practice's own compliance judgement still governs. We built the site so that judgement had very little to cover. This setup is covered on our HIPAA-compliant website development page.

2. Next.js and Payload, not a WordPress patch

The argument against what we did is sound. As one practitioner guide puts it, a ten-page brochure site that needs occasional polish is usually better served by optimising what you already have. And headless WordPress keeps the WordPress admin your editors already know while visitors use a Next.js front end.

SleepDr was not a ten-page brochure that needed polish. The subscriber system was broken. Old content had to be retired carefully. There were five languages to route with hreflang and 20 city pages to add, plus a block-based editor to build for non-developers. According to the same guide, Next.js handles locale-based routing more cleanly than WPML at scale. That matched what this project needed.

We chose Next.js 15 (App Router) for the front end and Payload CMS 3 as a self-hosted headless CMS. Supabase (PostgreSQL) handles data, and Vercel Pro handles hosting, on an account the client owns. Payload is an open-source TypeScript codebase you own and deploy anywhere. It supports Postgres, and it ships live preview and access control out of the box. Our Payload CMS development page covers how we use it, and our WordPress to Next.js migration service covers the migration route.

3. An editing model built for staff

The alternative to a page builder was fixed templates, where any new page would need a developer ticket. That would have failed the brief. We built a block-based page builder with eight reusable content blocks and live preview. Navigation is editable, every page has SEO fields, and access is role-based, with Editor and Admin roles. Payload's access control works at document, field and operation level, which makes those two roles meaningful rather than cosmetic.

The trade-off is that layout freedom stops at the eight blocks. That is deliberate. Staff can compose pages without breaking the design. They also got a 60-minute recorded training session and a user manual, so the knowledge does not depend on one person remembering a call.

4. The client owns everything

Some agencies keep hosting and repositories in their own accounts. We did not. SleepDr owns the GitHub repository, the Vercel, Supabase and Jotform accounts, and the data, with README handover documentation. That adds a little work at handover. In return, the practice is never stuck with us.

5. Two design directions, early

The window was four weeks, and the client was away for one of them. Late design debate was the biggest schedule risk. We presented two directions early: one kept the original colours, the other had a new look. Putting both on the table at the start gave the CEO a real choice while there was still time to act on it.

6. Privacy by leaving things out

The site has a minimal privacy policy and supports the Global Privacy Control browser signal. It carries no unneeded trackers. This follows from rule six above: the fewer scripts on a healthcare site, the fewer places patient information could end up by accident.

What we built

Every milestone in the project plan is complete:

  • UI/UX design
  • Content migration and SEO
  • Speed optimisation and SEO audits
  • HIPAA Jotform integration
  • Resend newsletter
  • WCAG audit and fixes
  • Blog critical SEO fixes
  • Website launch
  • Language translations
  • Post-launch QA
  • Blog image backfill and SEO improvements
  • Backend CMS

Three pieces are worth singling out.

The subscriber system. We rebuilt it on Supabase and Resend, added new-post notifications and one-click unsubscribe, and migrated the existing subscriber list. The 404 signup is gone, and existing subscribers moved over in the migration.

Twenty city landing pages. For a provider that ships tests across California, city landing pages are how patients in a given city find the practice. The Clutch review names them specifically.

Five languages. English plus Spanish, Korean, Chinese and Armenian, with hreflang so search engines serve the right version to the right patient. Our multilingual website development page covers how we structure this. A patient-facing site has to work for people using assistive technology too, so we handled the WCAG audit and fixes alongside that work. See our web accessibility work.

How the migration protected SEO

The risk in any CMS migration is that years of authority sit on URLs nobody has recorded. So the work started with a full technical crawl of the WordPress site and a URL inventory.

We used that inventory to build a 301 redirect map. The CEO wanted to retire outdated pages and posts, which is where migrations usually go wrong, so the client signed off every page retirement before launch. Nothing was dropped quietly. Our guide to WordPress SEO migrations and 301 redirects explains the method.

On the new build we added schema markup for MedicalEntity, Physician, LocalBusiness with a California service area, FAQPage and HowTo. Our medical practice schema guide goes through these types. We also added a structured Direct Answers and FAQ section written for answer engines as well as search engines, the kind of work we describe under generative engine optimisation. The site's name, address and phone details matched the Google Business Profile, and after launch we validated the sitemap in Search Console.

Results, and where each number comes from

Result Value Source
Mobile Lighthouse performance score 35 on the old WordPress site, 94 on the new build Our Lighthouse lab tests, mobile
Languages live with hreflang 5 (English, Spanish, Korean, Chinese, Armenian) Project record
City landing pages 20 Project record, also named in the Clutch review
Scope milestones complete All twelve Project record
Client review 5.0, verified Clutch

The Lighthouse number matters because it's the one people quote. The performance score is a weighted average of metric scores measured in a lab, and Google says results move with test conditions such as network routing, devices and browser extensions. It also suggests treating performance as a distribution of scores rather than a single number. Read 35 to 94 as what it is: a lab comparison of two builds, not a promise about every patient's phone. Lighthouse treats 90 as the good, green control point. The old site was well below that line, and the new one is above it.

We aren't publishing traffic, ranking or booking figures, because we don't have verified numbers to share. When we do, they'll go here.

What the client said

The practice's CEO left a verified 5.0 review on our Clutch profile. This is the line we'd point to:

"The level of detail and technical depth was impressive."

The review also mentions the 20 city landing pages, the HIPAA-compliant patient forms and a Lighthouse score above 90.

What happened after launch

Post-launch QA and the blog image backfill were already in the original scope. The clearer outcome: from 1 May 2026, SleepDr kept us on for an ongoing SEO partnership.

That work covers new articles, more California city pages, multilingual SEO, technical monitoring and checks on how AI assistants cite the practice. One rule carries over from the build: the client's own medical team reviews medical content before it goes live. We write and optimise. Clinicians decide what's medically right.

To compare this with another migration, our bdManagedIT case study covers a WordPress move to Astro and Sanity for a managed IT provider. More projects are on our work page, and if you run a practice with a similar brief, get in touch.

FAQ

Does a medical practice website need HIPAA-compliant hosting?

Not necessarily. If the website never receives protected health information, it can often stay out of HIPAA scope. SleepDr's site sends every form that could carry PHI to the client's own Jotform HIPAA account, keeps PHI out of the CMS, analytics and logs, and allows no file uploads. Your compliance adviser should confirm the approach for your practice.

For Jotform specifically, the HIPAA option requires a Gold or Enterprise plan and a signed Business Associate Agreement. Our healthcare website migration page sets out the wider pattern.

Why Payload CMS instead of headless WordPress?

Headless WordPress keeps the admin panel editors already know, a real advantage. But SleepDr's brief needed a different setup: a broken subscriber system to rebuild, five languages with hreflang, 20 city pages and a block-based builder for non-developers. Payload, running on Supabase's Postgres, gave us a block builder, live preview and role-based access in one open-source TypeScript codebase the client owns.

The subscriber system itself runs on Supabase and Resend rather than inside Payload.

How did you protect SEO while retiring old pages?

We crawled the whole WordPress site, built a URL inventory and mapped old addresses to their new locations with 301 redirects. The CEO signed off each page retirement before launch, so no page disappeared by accident. The new build adds medical schema and a structured FAQ section, and after launch we validated the sitemap in Search Console.

Google Business Profile details were aligned too, so the name, address and phone number match everywhere.

Is a Lighthouse score of 94 the same as real-world speed?

No. Lighthouse produces a lab score, a weighted average of metrics measured under test conditions, and Google notes that results shift with devices, network routing and browser extensions. SleepDr's move from 35 to 94 usefully compares two builds, but it doesn't measure what every patient experiences on their own phone.

But it does clear the 90-point green control point that Lighthouse uses for a good score.

Who owns the site after handover?

The client does. SleepDr owns the GitHub repository, the Vercel, Supabase and Jotform accounts, and all of its data, with README documentation for whoever works on it next. If the practice ever wants a different developer, nothing has to be transferred out of our accounts. The accounts are already theirs.