Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cloudflare-pages

БесплатноБез исполняемых скриптовНе проверен

Cloudflare Pages - Full-stack JAMstack platform with global CDN, serverless functions, Git integration, and native bindings to Workers, KV, R2, D1, and…

enunoот enuno★ 17 звёзд на GitHub8 установок в других каталогах

Об этом скилле

Cloudflare Pages Skill

Cloudflare Pages is a JAMstack platform for deploying full-stack applications to Cloudflare's global network. It combines static site hosting with serverless Pages Functions, automatic Git deployments, and native integrations with the Cloudflare ecosystem (Workers, KV, R2, D1, Durable Objects).

Key Value Proposition: Deploy static sites and full-stack applications with zero configuration, automatic preview deployments, unlimited bandwidth, and seamless access to Cloudflare's edge computing and storage services.

When to Use This Skill

  • Deploying static sites or JAMstack applications
  • Building full-stack apps with serverless functions
  • Configuring Pages Functions with bindings (KV, R2, D1)
  • Setting up Git-based CI/CD with preview deployments
  • Configuring headers, redirects, and routing
  • Troubleshooting build or deployment issues
  • Migrating from other hosting platforms to Pages

When NOT to Use This Skill

  • For Cloudflare Workers alone (use workers skill)
  • For general Cloudflare CDN/DNS configuration
  • For non-web applications or APIs without UI
  • For container-based deployments (Pages is serverless)

Core Concepts

Architecture Overview

┌─────────────────────────────────────────────────────────────────┐
│                    Cloudflare Pages                              │
│              Global Edge Network (300+ PoPs)                     │
└─────────────────────────────────────────────────────────────────┘
                              │
        ┌─────────────────────┼─────────────────────┐
        │                     │                     │
        ▼                     ▼                     ▼
┌───────────────┐    ┌───────────────┐    ┌───────────────┐
│  Static Assets │   │ Pages Functions│   │   Bindings    │
├───────────────┤    ├───────────────┤    ├───────────────┤
│ • HTML/CSS/JS │    │ • /functions/ │    │ • KV          │
│ • Images      │    │ • Middleware  │    │ • R2          │
│ • _headers    │    │ • Routing     │    │ • D1          │
│ • _redirects  │    │ • TypeScript  │    │ • DO          │
│ • _routes.json│    │ • Workers API │    │ • Queues      │
└───────────────┘    └───────────────┘    │ • AI          │
        │                     │            └───────────────┘
        └─────────────────────┼─────────────────────┘
                              │
        ┌─────────────────────┼─────────────────────┐
        ▼                     ▼                     ▼
┌───────────────┐    ┌───────────────┐    ┌───────────────┐
│  Deployment   │    │   Domains     │    │   Builds      │
├───────────────┤    ├───────────────┤    ├───────────────┤
│ • Git (GH/GL) │    │ • Custom      │    │ • 20 min max  │
│ • Direct      │    │ • *.pages.dev │    │ • 500/mo free │
│ • Wrangler    │    │ • Preview URLs│    │ • Env vars    │
│ • API         │    │               │    │ • Presets     │
└───────────────┘    └───────────────┘    └───────────────┘

Platform Limits

Resource Free Pro Business Enterprise
Builds/month 500 5,000 20,000 Unlimited
Custom domains 100 250 500 500
Files per site 20,000 20,000 20,000 20,000
File size 25 MB 25 MB 25 MB 25 MB
Preview deployments Unlimited Unlimited Unlimited Unlimited
Build timeout 20 min 20 min 20 min 20 min

Configuration Limits

Config Limit
Header rules 100 max
Static redirects 2,000 max
Dynamic redirects 100 max
Redirect line length 1,000 chars
Header line length 2,000 chars
Projects per account 100 (soft)

Quick Start

Deploy with Git Integration

# 1. Connect repository in Cloudflare Dashboard
# Workers & Pages > Create application > Connect to Git

# 2. Configure build settings
# - Production branch: main
# - Build command: npm run build
# - Build output: dist

# 3. Push to deploy
git push origin main

Deploy with Wrangler CLI

# Install Wrangler
npm install -g wrangler

# Login to Cloudflare
wrangler login

# Create a new project
npx wrangler pages project create my-site

# Deploy to production
npx wrangler pages deploy ./dist

# Deploy preview
npx wrangler pages deploy ./dist --branch=staging

Deploy via Dashboard

  1. Go to Workers & Pages > Create application
  2. Click Get started under Pages
  3. Drag and drop your build folder or zip file
  4. Enter project name and deploy

Build Configuration

Framework Presets

Cloudflare provides presets for 31+ frameworks:

Framework Build Command Output Directory
React (Vite) npm run build dist
Next.js npx @cloudflare/next-on-pages@1 .vercel/output/static
Astro npm run build dist
SvelteKit npm run build .svelte-kit/cloudflare
Nuxt npm run build dist
**R
Полный SKILL.md на GitHub

Установить cloudflare-pages в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/configuration.mdreferences/framework_guides.mdreferences/functions.mdreferences/getting_started.mdreferences/index.mdreferences/llms-full.mdreferences/llms.mdreferences/other.mdreferences/platform.md

FAQ

Что делает скилл cloudflare-pages?

Cloudflare Pages - Full-stack JAMstack platform with global CDN, serverless functions, Git integration, and native bindings to Workers, KV, R2, D1, and Durable Objects

Как установить скилл cloudflare-pages?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cloudflare-pages запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cloudflare-pages с