deploy-cloudflare

Deploy built static sites to Cloudflare Pages via Wrangler with secrets and preview promotion.

Updated May 21, 2026
One-click install
npx skills add https://github.com/jedmamosto/m-and-ms --skill deploy-cloudflare-jedmamosto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploy-cloudflare
Source: https://github.com/jedmamosto/m-and-ms/tree/main/.agents/skills/deploy-cloudflare
Command: npx skills add https://github.com/jedmamosto/m-and-ms --skill deploy-cloudflare-jedmamosto

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of getting a built funnel or static site live on Cloudflare Pages with the correct Wrangler setup, secrets, and safe preview-to-production promotion.

Core Features & Use Cases

  • Choose the right host for the job: Uses Cloudflare Pages as a secondary target when you need global edge performance, Cloudflare DNS consolidation, or Worker integration.
  • End-to-end deployment workflow: Covers installing/authenticating Wrangler, building the site, configuring Pages projects, deploying preview builds, and promoting to production.
  • Production-safe configuration: Ensures secrets are set via wrangler pages secret put, validates custom domains and SSL, and includes guardrails around GHL coexisting domains.

Quick Start

Ask the AI to deploy your built dist/ folder to Cloudflare Pages using Wrangler, set the required production secrets, create a preview for verification, and then promote to the main production branch with your custom domain if needed.

Frequently Asked Questions about deploy-cloudflare

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?

To deploy a static site to Cloudflare Pages using Wrangler, you need to build your project, configure the Pages project, and execute a deployment command. This workflow automates project creation, sets required production secrets, and safely promotes preview builds to the production branch.

Does Cloudflare Pages work with Next.js and Vite static outputs?

Yes, Cloudflare Pages works with Next.js and Vite static outputs. The deployment process correctly selects your dist/build/output directories to ship the built static files to the edge, ensuring compatibility and global edge performance for these frameworks.

What is the best way to manage secrets for Cloudflare Pages deployments?

The best way to manage secrets for Cloudflare Pages deployments is using the wrangler pages secret put command. This ensures secrets are configured safely without committing them to your repository, keeping your production environment secure while promoting preview builds.

Can I verify a custom domain and SSL before promoting a preview deployment to production?

Yes, you can verify custom domains and SSL before promoting to production. The deployment workflow includes guardrails to validate custom domain DNS and SSL configurations, ensuring safe promotion to the main production branch when using existing Cloudflare DNS domains.

When should I choose Cloudflare Pages over other static site hosting options?

Choose Cloudflare Pages when you require global edge performance, need to consolidate domains already on Cloudflare DNS, or want to integrate with Workers. It serves as a strong secondary target for shipping built funnels and static sites needing specialized edge compatibility.