·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