Cloudflare Pages Deploy

Verified
by trustedskills · v1.0.0 · Repository

Deploy Next.js static sites to Cloudflare Pages via Wrangler when not GitHub-connected. Handles build, deploy, URL verification, and common build errors.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add cloudflare-pages-deploy npx -- -y @trustedskills/cloudflare-pages-deploy
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "cloudflare-pages-deploy": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/cloudflare-pages-deploy"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows you to deploy Next.js static websites directly to Cloudflare Pages using the Wrangler CLI. It automates the deployment process, including building your site, verifying URLs, and handling typical build errors that might occur during deployment. This is particularly useful when deploying from environments other than GitHub.

When to use it

  • Deploying a Next.js static site from a local development environment or CI/CD pipeline not connected to GitHub.
  • Automating deployments for testing purposes, allowing rapid iteration and feedback loops.
  • Creating reproducible builds by specifying build parameters directly within the deployment process.
  • Troubleshooting deployment issues with detailed error reporting and automated recovery mechanisms.

Key capabilities

  • Builds Next.js static sites.
  • Deploys to Cloudflare Pages.
  • Handles URL verification.
  • Manages common build errors.
  • Utilizes the Wrangler CLI for interaction.

Example prompts

  • "Deploy my Next.js site located in /path/to/my/site."
  • "Run a production build and deploy to Cloudflare Pages with environment variable API_KEY=secret."
  • "Verify the URLs of my deployed website on Cloudflare Pages."

Tips & gotchas

  • Ensure Wrangler is installed and configured correctly before using this skill. You may need to authenticate with your Cloudflare account via Wrangler first.
  • This skill assumes you are working with a Next.js static site project. Dynamic server-side rendering will not be supported directly.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Verified Commitca6047d4

Installing this skill downloads the exact code at commit ca6047d4, not the current state of the repository. This prevents supply-chain attacks from unauthorized updates.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
v1.0.0
License
Author
trustedskills
Installs
0

Verified

Manually reviewed by the TrustedSkills team.

Pinned on 2026-03-04
Pinned commitca6047d4

Install command fetches the verified snapshot, not the live repository.