← Back to all writing

Dual-Region Static Architecture for China and Global Visitors

Shipping one Astro codebase to Volcengine ECS for mainland China and Cloudflare Pages globally with zero external font dependencies.

Personal sites rarely stall because of design ambition; they stall under maintenance overhead. Databases, expiring certificates, and blocked third-party fonts turn a quick weekend note into an operations chore.

Static first, self-hosted everything

Compiling to static HTML with Astro leaves only clean markup, self-hosted fonts, and focused client interactions:

  1. Zero third-party font latency: Bundling web fonts locally via @fontsource guarantees crisp typography inside mainland China and abroad alike.
  2. Mainland China on Volcengine ECS: Served via Nginx with immutable asset caching and HTTPS, leaving room to co-host lightweight /api/* endpoints for future web tools.
  3. Global edge via Cloudflare Pages: Geo-aware DNS routes international visitors straight to the nearest edge PoP.

One repository, one build, zero operational friction.

ESC