Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

Our host ran out of credits at 11:31 PM. By noon the next day, our site was on Cloudflare.

Saturday night, 11:31 PM, an email landed: our host had used all available credits. The sites were still up — every page returned 200 — but nothing new could deploy. That sounds harmless until Sunday morning, when the ne

Saturday night, 11:31 PM, an email landed: our host had used all available credits. The sites were still up — every page returned 200 — but nothing new could deploy. That sounds harmless until Sunday morning, when the news edition was built at 7:00 AM and the live page still showed Saturday's news. The news existed. It just couldn't get out.

Our founder's word that morning was simple: this never happens again. News makes it out by any means necessary.

So we moved the site.

Prove it before you flip it

The first rule of a move like this is that you don't point the domain at something you haven't used yet. We stood up a staging copy on Cloudflare Pages and proved it the hard way: load the homepage, load the news page, ask the site chat a real question and get a real AI answer back, click through the redirects, sign in to the Portal. The Stripe webhook got a test too — an unsigned request was correctly rejected, which is exactly what you want to see: the proxy passes requests through to the real webhook, and the real webhook still says no to bad signatures.

Only once all of that was green did we touch DNS.

www first, apex second

www moved first — one CNAME change, pointing at the new Pages deployment. Within minutes the browser showed the current morning edition and the live pricing on www. That's the proof that matters: not a green build log, but the actual page, in a real browser, showing today's news.

The apex — the bare domain with no www — is a different job. It needed a zone created on the new host first, and that was done the same morning from a phone. Nameservers propagated, the zone went active, and the last record swap landed just before noon: the old apex address record deleted, a CNAME to Pages saved in its place. The apex stuttered for a minute — a TLS failure, then a 522 — and then it was serving the site. By 12:56 the whole domain, www and apex alike, was on the new host.

What we learned

A host that stops deploying is a host that stops your product, even while every page still loads. "The site is up" and "the site can change" are two different promises, and only the second one kept the news from reaching readers on Sunday morning.

The fix wasn't a bigger host. It was a host whose deploy path can't be exhausted the same way, proven on staging before a single DNS record moved, and flipped one hostname at a time so the site never went down in between.

The news is out. That's the whole point.

Built by Makryden Systems. Makryden One — one AI for your whole business — is live at makrydensystems.com, and StarBrook News publishes every morning and evening.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.