Why we left at all
Since September 23, the site had been a static export served by a Cloudflare Worker, with the domain's DNS in a Cloudflare zone. The new site is a Next.js server with an admin, an API and a database, and it needed somewhere to run.
We tried Cloudflare first. On September 27 we ran the new site locally on the Workers runtime through OpenNext. The public pages worked. The admin didn't: its second sign-in request hung, because our code shares one database connection across requests and Workers won't reuse a connection opened in another request. Pages that render per request also lost their server render. Fixing either meant changing the app, so we put it on Google Cloud Run instead.
With hosting, the database and the team's email at Google, the Cloudflare account was holding a few small pieces: a bot check for the contact form (Turnstile), a visit counter (Web Analytics) and the DNS. Email went through a third provider, Resend. On October 4 we decided to keep nothing there.
The front door: a load balancer and Cloud DNS
The domain now points at Google's global HTTPS load balancer, with one backend per Cloud Run service. It redirects www and plain HTTP to https://farcholabs.com, sends core.farcholabs.com to the API, and the web service accepts traffic only from it, so its run.app address answers 404.
The certificate was issued before the switch, through a DNS record that proves we own the domain. When the nameservers changed, HTTPS already worked, with no gap.
One job moved from our code to the load balancer: telling the app the visitor's IP address, which the contact form hashes to stop abuse. The load balancer adds it as a header we name, and the app trusts only the value it appended:
// proxy.ts: the load balancer appends the visitor's address as X-Client-IP.
// A visitor can send that header too, so keep only the last value.
const ip = request.headers.get("x-client-ip")?.split(",").at(-1)?.trim();
if (ip && isIP(ip)) headers.set("x-client-ip", ip);The bot check: a score, not a puzzle
Turnstile gave way to Google Cloud reCAPTCHA with a score key. Visitors see no puzzle and no widget. When they send the form, the browser asks Google for a token, and the API asks Google to assess it using the service's own identity, so there's no secret key to store or rotate.
# app/integrations/recaptcha.py (trimmed)
event = {"token": token, "siteKey": site_key, "expectedAction": action}
try:
access_token = await tokens.get() # the service's own identity, no secret
response = await http.post(f"{api}/projects/{project}/assessments",
headers={"Authorization": f"Bearer {access_token}"},
json={"event": event}, timeout=10)
response.raise_for_status()
result = response.json()
properties = result["tokenProperties"]
score = float(result.get("riskAnalysis", {}).get("score", 0.0))
except (httpx2.HTTPError, KeyError, TypeError, ValueError):
return False # Google didn't answer: the send is refused
if not properties.get("valid") or properties.get("action") != action:
return False
return score >= min_score # 0.5 by defaultTwo choices are in that code. If Google doesn't answer, the send is refused, because a check that passes when it fails isn't a check. And the threshold is 0.5, a setting (RECAPTCHA_MIN_SCORE) in the service's configuration.
It costs nothing at our volume: reCAPTCHA's free tier covers 10,000 assessments a calendar month per organization, as of November 16, 2026 (Google's tier comparison). What we gave up is a little privacy: on /contact, reCAPTCHA may set a Google cookie for the check, and our privacy policy says so. Without JavaScript there's no token and the form doesn't go through, which was also true of Turnstile.
Email and visits: two fewer secrets
Every email the platform sends goes to the team: a new brief, a client accepting or declining a proposal. The public form never emails the visitor, so nobody can use it to send mail as Farcholabs. That made Resend easy to drop.
- 01The API's service account has domain-wide delegation in our Google Workspace for one scope,
gmail.send. - 02To send, it signs a short-lived token naming the team's mailbox with Google's IAM Credentials API.
- 03It trades that for the mailbox's access token, and sends through the Gmail API.

There's no key file anywhere. The mail goes out from a Workspace that already had SPF, DKIM and DMARC, and three DNS records that only Resend needed went away. The limit is Google Workspace's: 2,000 messages a day per user, as of November 16, 2026, far more than a studio's own alerts.
Visits stopped needing a script. The load balancer logs every request, so counts per page come from those logs. The site loads no analytics script, sets no cookie for it and shows no banner. The logs live 30 days by default, so we run our monthly report before the month's logs expire.
- secrets deleted: Turnstile's and Resend's
- 2
- DNS records only Resend needed, gone
- 3
- analytics scripts or cookies on the site
- 0
What it costs
Google's load balancer bills its forwarding rules by the hour: USD 0.025 an hour for the first five, on its pricing page as of November 16, 2026. We use two (HTTPS and the HTTP redirect), and both fall under that one charge: about USD 18.25 for a 730-hour month, plus USD 0.008 per GiB the load balancer processes. A Cloud DNS zone costs USD 0.000273973 an hour on its pricing page, about USD 0.20 a month, plus queries.
| reCAPTCHA (under 10,000 a month) | 0 USD |
|---|---|
| Cloud DNS zone | 0.2 USD |
| Load balancer forwarding rules | 18.25 USD |
The load balancer is the one piece here that costs real money, about USD 18 a month. In return we got one provider, one bill, the run.app address closed, and a certificate issued before the switch.
The switch, and what we'd do differently
We copied the zone to Cloud DNS, with the mail records left exactly as they were, and changed the nameservers at the registrar. Two things surprised us:
- The Worker's custom domains held the names. While the old Worker owned
farcholabs.comandwww, Cloudflare wouldn't let us create A records for them. We removed the custom domains and pointed the old zone at the new load balancer too, so anyone still asking Cloudflare reached the new site. - Our own network showed us the past. The nameserver records for
.comlive 48 hours in caches, so our router kept showing the old site (and a 404 on/admin) while the rest of the world saw the new one. Ask a public resolver before you panic.
A check that passes when it fails isn't a check.
The other trade-off is the rollback. Before, going back meant moving the domain from one Worker to another, in minutes. Now it means pointing the nameservers back, which can take hours to spread. We kept the Cloudflare zone and the old Worker untouched for 48 hours as plan B, didn't need them, and deleted both on October 6.
Would we do it again?
Yes, for a site like ours: one provider for hosting, data, DNS and email means one place to look when something breaks, and two fewer secrets to leak. It costs about USD 18 a month more and a slower rollback, and we'd count both before moving a client.
If you're weighing a move like this for your own platform, see what fits or send us a brief. A person reads it.


