Cutting Vercel and Resend: How Claude Moved Five Sites onto One Box

I was paying Vercel and Resend for things a server I already owned could do. So I handed the migration to Claude: five sites, all my transactional email, DNS, monitoring and patching, moved onto one self-hosted box in a few days.

12 min read
2095 words
Cutting Vercel and Resend: How Claude Moved Five Sites onto One Box

Cutting Vercel and Resend: How Claude Moved Five Sites onto One Box

For a while now I've been paying for two services that a server I already own could do just as well.

Vercel hosted my sites. Resend sent my transactional email. Both are genuinely good products, and both cost money every month: Vercel Pro is $20 a month per seat before any usage charges, and Resend Pro is another $20 a month. That's $40 a month, $480 a year, at the very least. Meanwhile I had an OVHcloud dedicated server sitting right there, already running my databases, the Deploy Forge workers and a live DayZ server, with plenty of capacity to spare.

The reason I hadn't moved was time. Migrating five sites, rebuilding email, rewiring DNS and setting up monitoring is weeks of careful, fiddly work, and I'd rather spend those weeks building things.

So I didn't do it. Claude did.


The Setup

The destination was a single OVHcloud box running Dokploy, which is an open-source deployment platform built on Docker Swarm with Traefik in front. Think of it as a self-hosted Vercel: push to a branch, it builds the Docker image and deploys it, with certificates handled automatically.

Five sites needed to come home:

  • Deploy Forge, my Next.js SaaS for deploying WordPress themes from GitHub, with paying customers.
  • Smith Plumbing & Gas, a Payload CMS site on Next.js.
  • Road to Sixty, the static Astro site for my World of Warcraft addon.
  • Everhold, a Next.js site with a 3D live map for a DayZ server.
  • jordanburch.dev, the site you're reading this on.

And one vendor's job needed replacing entirely: all the transactional email Resend was sending for them.


How Claude Drove It

I ran the whole thing through Claude Code. I gave it access to the tools a person doing this job would use: the Dokploy API, the Cloudflare API, the server over SSH, GitHub, and the monitoring service. Then I worked with it the way I'd work with a very fast, very thorough engineer: agree the plan, let it do the work, review the result.

Claude did every part of the migration itself:

  • Took inventory first. The Vercel account had 23 projects across four scopes. Claude checked which ones still served a real domain and found five. The rest were old experiments to delete, not migrate.
  • Containerised each app. It wrote a Dockerfile for each site (a standalone Next.js build for four of them, nginx serving static files for the Astro site) and created the matching app in Dokploy through its API.
  • Moved the configuration. Environment variables went from Vercel into Dokploy with scripts written so that values never printed to the screen.
  • Verified before switching anything. Each site ran on a test hostname first, and Claude compared it with the live Vercel version page by page. On Road to Sixty every route returned the same status on both; on Everhold the visible text of every page matched line for line.
  • Ran the cutovers. It switched the DNS records through Cloudflare's API, attached the domains in Dokploy, waited for Let's Encrypt to issue certificates (seconds, once it saw the new DNS), and confirmed each site was serving from the box.
  • Kept a rollback ready. Instead of deleting anything on Vercel, it paused each project, which turns it off but keeps it one click away from coming back.
  • Wrote everything down. Every change went into a runbook and an inventory of the box, so the next session, mine or Claude's, starts from what's actually there.

The box also runs a live game server with real players on it, so after every infrastructure change Claude queried the game server to confirm it was still answering. It was, every time.


Replacing Resend

Email was the part I expected to be hardest, and it turned out to be one of the simplest.

The key insight was that I didn't need an email server. None of my sites receive mail through it. They only send it: password resets, notifications, contact forms. So Claude set up Postfix as an internal-only relay on the Docker network, and each app now sends plain SMTP to it. Incoming mail stays with simple forwarders, so there's no inbox to run, no spam filtering and no open mail port.

Claude published the DKIM, SPF and DMARC records for each domain, and the first real email scored 10/10 on mail-tester, signed and authenticated. The code change in each app was a few lines: "if an SMTP host is configured, use it; otherwise fall back to Resend". It even found an extra sender I'd forgotten about: the Dokploy panel's own deploy notifications had been going through Resend too, so they moved to the relay as well.

By the end of the move, Resend was down to the free tier.


Putting It Behind Cloudflare

Every site now sits behind Cloudflare's proxy, which gives me the CDN and DDoS protection that came bundled with Vercel, all on Cloudflare's free plan.

Claude switched each site's DNS records to proxied, then added a small rule to Traefik so the server only accepts traffic that comes through Cloudflare. Anyone who goes straight to the server's IP gets turned away. That rule now covers eleven hostnames across the five sites.

The one thing I wanted locked down harder than a public site was the Dokploy admin panel itself, since it can deploy anything to the box. On Vercel, the dashboard sits behind Vercel's own login. Here, the panel sits behind Cloudflare Zero Trust (Cloudflare Access), which is also free for a setup this size. Before Dokploy's own login page even loads, Cloudflare asks who you are, and only my identity gets through. Claude's automation uses a Cloudflare service token instead, so it can call the Dokploy API without a browser login, and the only paths left open are the deploy webhooks GitHub calls and a health check. The panel is invisible to everyone else.


Replacing the Rest of the Bundle

Vercel's price includes more than hosting, so each extra had to be replaced, and Claude found a free option every time:

  • Analytics, logs and monitoring. Vercel Analytics and the log drain became Better Stack, on its free plan. That turned into the biggest single piece of work, so it gets its own section below.
  • Bot protection. Vercel's bot check on my contact form became Cloudflare Turnstile, which is free.
  • Crons. Scheduled jobs became Dokploy schedules running inside each app's container.

The services I'm keeping (Upstash, Cloudflare R2, Sentry and Polar) all stayed exactly as they were.


Seeing Everything with Better Stack, for Free

The one thing I was nervous about losing was visibility. On Vercel, logs and analytics are just there. On my own server, I'd have nothing unless I built it. So I asked Claude for monitoring that covered the whole box, not just the apps, and fit on Better Stack's free plan: 3 GB of logs a month and 30 GB of metrics.

Two shippers, everything covered. Dokploy has log forwarding to Better Stack built in, and it ships the logs and resource usage of every app it deploys. Claude added a second, hand-configured Vector shipper for everything else: the server's own system logs, the databases, the reverse proxy, the firewall and the game server. Between them, nothing on the box is invisible any more.

Counting instead of shipping. The trick to staying on the free plan was deciding what's worth keeping as a log line and what's only worth counting. 84% of the proxy's log lines were one app polling its health endpoint, about 110 MB a day on their own. Claude turned lines like that into counters on the server before they're sent, so they cost almost nothing to keep. Routine chatter from the databases and system services became counters too, which took the shipped lines from about 3,800 an hour to about 280. Warnings and errors still ship in full. Everything together comes to about 30 MB of logs a day, under 1 GB a month. Claude also blocked 54 container metrics that no dashboard used, which halved the metric data stored.

Analytics without a tracking script. Instead of a third-party analytics script, page views come from the proxy's own log. A visit only counts when the browser says it's loading a page (Sec-Fetch-Dest: document), so uptime monitors, scripts and prefetches drop out without needing a bot list. Visitors are counted as a salted hash of IP and browser that changes every day, and no visitor's IP ever leaves the server. I still get page views, visitors, top pages, referrers, countries, devices and browsers for every site.

Product numbers, not just server numbers. Every five minutes, a small script runs read-only counting queries against each app's database: Road to Sixty's users, active devices, characters and level 60s, and Everhold's map sign-ins. Only counts leave the box, never names, emails or IDs. So the same dashboard that shows CPU also shows how the products are actually being used.

Road to Sixty's section of the dashboard: users, active users, new users, active devices, characters at level 60 and save uploads, with charts of active users and totals, and tables of desktop app versions, addon versions and platforms

A dashboard for every project. There's an "OVH box" dashboard for the whole server, and one for each of the five sites with its own traffic, errors, response times and resource usage. Every container is tagged with the project it belongs to, so the server-wide view can break CPU, memory, network and disk down by project:

CPU, memory, network and disk I/O over time, broken down by project: Smith Plumbing & Gas, Everhold, Road to Sixty, jordanburch.dev, Deploy Forge, the mail relay, a WordPress test site and the platform itself

Better Stack also runs the uptime monitors and Deploy Forge's public status page.

And a security view. This is the part I check most:

The security section of the server's Better Stack dashboard: SSH events, firewall blocks and fail2ban bans per minute, with tiles for unknown-key logins, pending security updates, reboot required, next certificate expiry, banned IPs and unexpected open ports

SSH attempts, firewall blocks by port and fail2ban bans per minute sit along the top. Below them are the questions I actually care about, each answered by a single number: has anyone logged in with a key I don't recognise, are security updates waiting, does the box need a reboot, when does the next certificate expire, and is anything listening on a port it shouldn't be. Further down, the same section counts the scanners constantly probing the server for .env files and WordPress logins (about 1,850 a day), and any requests that try to reach a site without going through Cloudflare.

All of it costs about 2% of the server's CPU and nothing on the bill.


Keeping It Patched

Leaving a platform means taking over its maintenance too, so Claude set that up as part of the move.

Dependabot now watches every repo, and Claude built a reusable sweep: a skill that batches all the pending dependency updates for a repo into one pull request, builds the real production Docker image, runs it on the server, and compares it with the live site screenshot by screenshot in a real browser. The first sweeps took one repo from 93 open alerts to zero in a single PR, and deleted about 45 packages from this site that only fed unused components.

To let Claude merge its own PRs without letting anything slip through, I split the branch protection: Claude can merge, but only once every required CI check has passed, and nobody can bypass those checks, me included.


What I Actually Did

Claude did the work, but this was still a collaboration, and a few things needed me:

  • Decisions. What to keep, what to replace, and when to switch each site over.
  • The dashboard settings Claude's access didn't cover. A couple of Cloudflare settings had to be flipped by hand in the dashboard.
  • The human test. Bot protection is designed to stop automated browsers, so the final check of this site's contact form was me, in my own browser, sending a real message. It arrived signed and authenticated a few minutes after cutover.
  • Review. Every change landed as a pull request I could read.

That's a very different few days from the weeks I'd been putting this off for.


The Result

Before After
Hosting Vercel Pro, $20/month plus usage The OVHcloud box I already had
Transactional email Resend Pro, $20/month Self-hosted relay, free
CDN and protection Bundled with Vercel Cloudflare, free plan
Admin panel access control Vercel's login Cloudflare Zero Trust, free plan
Analytics, logs and monitoring Bundled with Vercel Better Stack, free plan
Total for these services $40+/month ($480+/year) $0 extra

Five sites, all my transactional email, DNS, monitoring and patching, moved onto one box in a few days, without me writing the migration myself. There's no Vercel project left, Resend is on the free tier, and everything runs somewhere I can see it.

If you've been putting off a migration because of the time it would take, that's the part that's changed. The work still has to be done carefully. It just doesn't have to be done by you.

More Articles

Thoughts on web development, design, and technology

JB monogram logo