DEV Community

Alex Spinov
Alex Spinov

Posted on

Cloudflare Pages Has a Free API You Should Know About

Cloudflare Pages is a full-stack deployment platform for web applications. Deploy static sites and full-stack apps with Git integration — free for most projects.

Why Pages Over Vercel/Netlify

A developer was hitting Vercel's free tier limits — 100GB bandwidth, limited serverless function invocations. Cloudflare Pages: unlimited bandwidth, unlimited requests, free for most use cases.

Key Features:

  • Unlimited Bandwidth — No bandwidth charges on free tier
  • Git Integration — Auto-deploy from GitHub/GitLab
  • Full-Stack — Server-side rendering with Pages Functions
  • Preview Deployments — Every PR gets a preview URL
  • Global CDN — 300+ edge locations

Quick Start

npx wrangler pages deploy ./dist
Enter fullscreen mode Exit fullscreen mode

Or connect your GitHub repo in the Cloudflare dashboard for auto-deploys.

Pages Functions (Server-Side)

// functions/api/hello.ts
export async function onRequestGet() {
  return Response.json({ message: "Hello from the edge!" })
}
Enter fullscreen mode Exit fullscreen mode

Framework Support

Next.js, Nuxt, SvelteKit, Remix, Astro, Gatsby, Hugo, Jekyll — all supported with zero config.

Why Choose Pages

  1. Unlimited bandwidth — no surprise bills
  2. Full-stack — not just static sites
  3. 500 builds/month — generous free tier

Check out Pages docs to get started.


Deploying web apps? Check out my Apify actors or email spinov001@gmail.com for custom solutions.

Top comments (0)