Skip to main content

Cloudflare Pages

Cloudflare Pages is a static site hosting service provided by Cloudflare. It can be integrated with Cloudflare Workers to deliver dynamic content as well.

Cloudflare Pages Website

Features

Cloudflare Pages allows you to deploy content via command line or integrate with repositories like GitHub for content updates. What sets it apart from other services is that while being a CDN, content updates are reflected immediately.

When integrating with a repository, you can choose to deploy to the main site or keep it on a unique URL by specifying a branch. This enables team members to review sites that are still under development.

While Cloudflare Pages supports Next.js applications, note that some implementation adjustments are needed compared to Vercel's setup.

Usage

This site, MOONGIFT.dev, is also deployed on Cloudflare Pages. Although our site uses Docusaurus built with Node.js, it can be deployed without issues using the following command. The build folder contains the static files generated by Docusaurus.

npm run build && wrangler pages deploy build

Deployment is done using Wrangler (command line). You can set up CI/CD by running this command in GitHub Actions or similar services.

Documentation

Cloudflare Pages documentation is available at Overview · Cloudflare Pages docs.

API

Cloudflare Pages provides an API. The API documentation can be found at REST API · Cloudflare Pages docs.

Pricing

Cloudflare Pages is available for free. While there are some limitations, it provides sufficient features for individuals and small projects.

  • One build at a time
  • Up to 500 builds per month

Unlimited requests and bandwidth.

Paid plans include the Pro plan at $20/month or the Business plan at $200/month.

MOONGIFT Eye

This site is built with Cloudflare Pages. Since it is Docusaurus, it is static hosting only, but if you want dynamic functionality, you can combine it with Cloudflare Workers.

The appeal of Cloudflare Pages is its unbeatable low price and excellent development experience through the CLI. Including custom domains, developers will be able to use it right away.

Cloudflare Pages