‹ 首页

deploy-cloudflare

@ominou5 · 收录于 1 周前

Deploys funnel pages to Cloudflare Pages. Covers Wrangler CLI setup, direct upload, custom domains, and Cloudflare-specific optimizations.

适合你,如果要用 Cloudflare Pages 托管和发布网站

/ 下载安装
deploy-cloudflare.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add ominou5/funnel-architect-plugin/deploy-cloudflare
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- ominou5/funnel-architect-plugin/deploy-cloudflare
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify ominou5/funnel-architect-plugin/deploy-cloudflare
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
67GitHub stars
~281上下文体积 · 单文件
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · MIT · 7c5acf6

Deploy to Cloudflare Pages

Best for global CDN performance, Workers integration, and free tier generosity.

Prerequisites
  • Node.js installed
  • Cloudflare account (free tier includes unlimited sites)
Setup
# Install Wrangler CLI
npm install -g wrangler

# Login
wrangler login

# Deploy static site
wrangler pages deploy . --project-name=my-funnel
Configuration (wrangler.toml) — Optional
name = "my-funnel"
compatibility_date = "2025-01-01"

[site]
bucket = "."
Custom Domain
  1. Pages project → Custom domains → Set up a domain
  2. Add CNAME record: your-project.pages.dev
  3. SSL is automatic with Cloudflare Universal SSL
Custom Headers (_headers file)
/*.html
  Cache-Control: public, max-age=300

/*.css
  Cache-Control: public, max-age=31536000, immutable

/*.js
  Cache-Control: public, max-age=31536000, immutable

/*.webp
  Cache-Control: public, max-age=31536000, immutable

/*
  X-Content-Type-Options: nosniff
  X-Frame-Options: DENY
  Referrer-Policy: strict-origin-when-cross-origin
Redirects (_redirects file)
/old-page  /new-page  301
/           /index.html  200
/*          /404.html    404
Performance Benefits
  • Global CDN (300+ edge locations)
  • Automatic Brotli compression
  • HTTP/3 support
  • Free Web Analytics
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。