·cloudflare-worker-base
</>

cloudflare-worker-base

jezweb/claude-skills

使用 Hono 路由、Vite 插件和靜態資產設置 Cloudflare Workers。防止 10 個錯誤,包括導出語法、路由衝突、Vite 8 nodejs_compat、基本選項回歸和緩存損壞。 使用場合:創建 Workers 項目、配置 Hono/Vite 或對導出語法、API 路由衝突、HMR 問題或 Vite 8+ 兼容性進行故障排除。

399安裝·8熱度·@jezweb

安裝

$npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-worker-base

SKILL.md

Production-tested: cloudflare-worker-base-test (https://cloudflare-worker-base-test.webfonts.workers.dev) Last Updated: 2026-01-20 Status: Production Ready ✅ Latest Versions: hono@4.11.3, @cloudflare/vite-plugin@1.17.1, vite@7.3.1, wrangler@4.54.0 Skill Version: 3.1.0

Issue #1: Export Syntax Error Error: "Cannot read properties of undefined (reading 'map')" Source: honojs/hono #3955 Prevention: Use export default app (NOT { fetch: app.fetch })

Issue #2: Static Assets Routing Conflicts Error: API routes return index.html instead of JSON Source: workers-sdk #8879 Prevention: Add "runworkerfirst": ["/api/"] to wrangler.jsonc

使用 Hono 路由、Vite 插件和靜態資產設置 Cloudflare Workers。防止 10 個錯誤,包括導出語法、路由衝突、Vite 8 nodejs_compat、基本選項回歸和緩存損壞。 使用場合:創建 Workers 項目、配置 Hono/Vite 或對導出語法、API 路由衝突、HMR 問題或 Vite 8+ 兼容性進行故障排除。 來源:jezweb/claude-skills。

查看原文

可引用資訊

為搜尋與 AI 引用準備的穩定欄位與指令。

安裝指令
npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-worker-base
分類
</>開發工具
認證
收錄時間
2026-02-01
更新時間
2026-02-18

快速解答

什麼是 cloudflare-worker-base?

使用 Hono 路由、Vite 插件和靜態資產設置 Cloudflare Workers。防止 10 個錯誤,包括導出語法、路由衝突、Vite 8 nodejs_compat、基本選項回歸和緩存損壞。 使用場合:創建 Workers 項目、配置 Hono/Vite 或對導出語法、API 路由衝突、HMR 問題或 Vite 8+ 兼容性進行故障排除。 來源:jezweb/claude-skills。

如何安裝 cloudflare-worker-base?

開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/jezweb/claude-skills --skill cloudflare-worker-base 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用

這個 Skill 的原始碼在哪?

https://github.com/jezweb/claude-skills