在單次工作階段中交付全新的 Cloudflare 託管 React 應用程式
何時使用: 你想要直接串接 Workers + Pages + D1,而不必閱讀 5 份 Cloudflare 文件。
步驟
-
建立鷹架Use claude-skills. Scaffold a React 19 + Tailwind v4 app deployed to Cloudflare Pages with a Workers API and D1 DB.✓ 已複製→ 包含 apps/web、apps/api(Worker)、wrangler.toml 的 Monorepo 結構
-
新增功能Add a 'notes' feature — D1 schema, CRUD Worker endpoints, React UI with Tailwind v4 styling.✓ 已複製→ Migration + Worker + React 頁面
-
部署Deploy to Cloudflare.✓ 已複製→ wrangler deploy 輸出;回傳 URL
結果: 在一小時內取得上線 URL。
注意事項
- 不同環境間 Wrangler 設定不同步 — 從一開始就使用 wrangler environments——包含 dev/staging/prod 區段
搭配使用: cloudflare · cloudflare-api