ZeroOne 繁體中文技術部落格

Cloudflare Hyperdrive MySQL 怎麼接?用 mysql2 設定 Workers binding
Cloudflare Hyperdrive 已支援 MySQL GA。本文用 mysql2 示範 Wrangler binding、nodejs_compat、disableEval 與本機 localConnectionString,並整理連線、快取與資料庫防火牆的檢查順序。
1455 字
|
7 分鐘
Cover Image of the Post
Cloudflare Workers Local Explorer 怎麼用?用 wrangler dev 看 bindings、logs 與 traces
Cloudflare Workers Local Explorer 可在 wrangler dev 中檢查 KV、R2、D1、Durable Objects、Workflow、logs 與 traces。本文整理版本需求、啟動方式、API 與安全的除錯流程。
1407 字
|
7 分鐘
Cover Image of the Post
pnpm 供應鏈安全怎麼設?用 minimumReleaseAge 與 trustPolicy 驗證 lockfile
pnpm v11 已提供 minimumReleaseAge 與 trustPolicy 來延遲新版本、阻擋信任度下降。本文用 pnpm-workspace.yaml 設定、CI 驗證與例外清單,整理 lockfile 供應鏈防護邊界。
1481 字
|
7 分鐘
Cover Image of the Post
Wrangler dev 出現 Network connection lost 怎麼查?先做版本 bisect
Wrangler dev 遇到 Network connection lost 或 fetch failed 時,先記錄 Wrangler、Miniflare、Node 與 runner,再用 4.113.0/4.114.0 做同樹版本比較,避免把上游回歸誤判成 Worker 程式錯誤。
1367 字
|
7 分鐘
Cover Image of the Post
Cloudflare AI Gateway 怎麼接 Access?用 cf.user_id 做使用者用量分流
Cloudflare AI Gateway 接上 Access 後,可用登入身分分流請求與查看 User Insights。本文整理 custom domain、Access JWT、cf.user_id、service token 與預設 gateway endpoint 的差異。
1636 字
|
8 分鐘
Cover Image of the Post
GitHub Actions workflow_run 安全怎麼設?先隔離 artifact 與 secrets
GitHub Actions 的 workflow_run 能在非特權 CI 完成後執行留言或部署,但後續流程會取得 secrets 與可寫入 token。本文用 artifact 只傳資料、$RUNNER_TEMP 驗證與最小 permissions,整理安全邊界。
1709 字
|
9 分鐘
Cover Image of the Post
GHES support bundle 上傳被拒絕怎麼辦?先升到指定 patch
GitHub Enterprise Server 在 2026-08-18 起拒絕未達 patch 門檻的 support bundle 產生與上傳。本文整理 3.21.3、3.20.5、3.19.9、3.18.12、3.17.18 的版本對照、檢查命令與無法立即升級時的處理方式。
1277 字
|
6 分鐘
Cover Image of the Post
pnpm deploy 怎麼做?把 monorepo 的單一 app 裝成 production image
pnpm monorepo 部署時不必把整個 workspace 帶進 production image。本文用 pnpm deploy、--filter 與 --prod 產生可攜式目錄,說明 injected workspace、Docker multi-stage、files 與 ignore 規則。
1594 字
|
8 分鐘
Cover Image of the Post