跪拜 Guibai
← All articles
Artificial Intelligence

Cloudflare's Free Tier Is a Trap for Some Side Projects

By 深小乐 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Cloudflare's free tier looks like a zero-cost launchpad, but the moment a project needs real compute, stable mainland China access, or a payment method beyond Visa/Mastercard, the economics and logistics flip. Developers who skip the fine print end up with a site that works everywhere except where their users actually are.

Summary

Cloudflare's free tier — CDN, DNS, Pages, Workers, Tunnel, and object storage — can replace a VPS for personal sites, demos, and MVPs. GitHub integration and the Wrangler CLI let AI coding agents handle deployments directly from the terminal. Tunnel, in particular, makes exposing a local service to the internet trivial without opening ports or revealing the origin IP.

But the free tier has hard edges. Workers run in a V8 sandbox and cannot handle video transcoding, heavy data processing, or browser automation; those tasks require Containers, which start at $5/month with no free tier. R2 storage demands a payment card on file even for the free 10 GB, and the supported cards exclude Alipay, WeChat Pay, and UnionPay — a significant barrier for developers in mainland China.

Access from mainland China is the biggest practical problem: overseas traffic is fast, but domestic users often hit latency, instability, or outright unavailability depending on the ISP and time of day. Projects that hardcode local filesystem paths also break on Cloudflare's platform, requiring environment-aware rewrites that AI-generated code frequently misses.

Takeaways
Cloudflare's free tier covers CDN, DNS, Pages, Workers, KV, D1, R2, and Tunnel — enough to run a personal site or demo without a VPS.
Workers are limited to lightweight JS/TS/WASM in a V8 sandbox; video transcoding, image compression, and browser automation are out of scope.
Containers handle heavy workloads but have no free tier and require a Workers Paid plan starting at $5/month.
R2 object storage requires a payment card to activate, even for the free 10 GB/month, and does not support Alipay, WeChat Pay, or UnionPay.
Tunnel is free and exposes local services to the internet without opening inbound ports or revealing the origin IP.
Access from mainland China is unreliable — slow, unstable, or intermittently blocked depending on ISP and time of day.
Projects that hardcode local file paths or assume a local filesystem break on Workers and Pages; environment variables, KV, or R2 must replace them.
GitHub integration and the Wrangler CLI allow AI coding agents to deploy, manage config, and view logs directly from the terminal.
Conclusions

Cloudflare's free tier is a global product with a regional blind spot: it works brilliantly for an audience outside China but creates a self-serve dead end for developers whose users are inside the Great Firewall.

The requirement to bind a foreign payment card for R2 and Containers is a quiet gate that filters out a large pool of Chinese solo developers before they ever hit a technical limit.

AI-generated code tends to litter projects with hardcoded local paths and temporary files, which collide directly with Cloudflare's stateless, no-filesystem execution model — a friction point that will only grow as agentic coding spreads.

Concepts & terms
Workers (Cloudflare)
Serverless functions that run in a V8 JavaScript isolate at Cloudflare's edge locations. Suitable for lightweight, low-latency tasks like API gateways and auth checks, but cannot run full Linux binaries or long-running processes.
Tunnel (Cloudflare)
A service that creates an outbound-only connection from a local machine to Cloudflare's network, exposing a local service to the internet via a public URL without opening inbound ports or revealing the origin IP.
Wrangler
Cloudflare's official command-line interface for managing Workers, Pages, R2, KV, and Tunnels. Supports deployment, configuration, and log streaming from the terminal.
Containers (Cloudflare)
Full Linux container instances running on Cloudflare's edge network, capable of executing Python, Go, FFmpeg, and other native workloads that Workers cannot. Requires a paid Workers subscription and has no free tier.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗