pages

Deploy static and full-stack apps to Cloudflare Pages with previews and edge Functions.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/theslashdojo/dojo --skill pages-theslashdojo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pages
Source: https://github.com/theslashdojo/dojo/tree/main/nodes/cloudflare/pages
Command: npx skills add https://github.com/theslashdojo/dojo --skill pages-theslashdojo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler, and includes scripts (resource) components.

What problem does it solve?

Simplifies and automates deploying static sites and full-stack applications to Cloudflare Pages so developers can publish updates, previews, and edge functions without manual dashboard steps.

Core Features & Use Cases

  • Git-integrated continuous deployment with automatic preview URLs for branches and pull requests.
  • Framework presets and build support for Next.js, Astro, SvelteKit, Vite, Hugo and more to auto-detect build commands and output directories.
  • Pages Functions and bindings enable server-side routes at the edge with support for D1, KV, and R2 bindings for full-stack app needs.
  • Use Case: Deploy a Next.js site with a preview per PR and add lightweight API endpoints via Pages Functions to handle form submissions or small backends.

Quick Start

Use the pages skill to deploy your built output directory (for example, dist) to a Cloudflare Pages project named my-site.

Frequently Asked Questions about pages

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a static site to Cloudflare Pages using Wrangler CLI?

To deploy a static site to Cloudflare Pages, use Wrangler CLI to publish your built output directory, such as dist, directly to a Cloudflare Pages project and generate a production URL.

Does Cloudflare Pages support Next.js, Astro, and SvelteKit build presets?

Cloudflare Pages supports framework presets for Next.js, Astro, SvelteKit, Vite, and Hugo, automatically detecting build commands and output directories for static site generators.

Can I add server-side API endpoints with Cloudflare Pages Functions?

Cloudflare Pages Functions enable server-side routes at the edge, supporting D1, KV, and R2 bindings to handle form submissions or lightweight backends for full-stack web applications.

How do automatic preview deployments work for pull requests on Cloudflare Pages?

Cloudflare Pages provides git-integrated continuous deployment with automatic preview URLs generated for branches and pull requests, allowing you to review changes before merging to production.

What do I need to deploy to Cloudflare Pages from the command line?

Deploying to Cloudflare Pages via CLI requires the Wrangler dependency, a Cloudflare API token, and an account ID to authenticate and publish your web application to the edge.