ZeroOne 繁體中文技術部落格
Astro incremental build 怎麼用?用 incrementalBuild 與 cacheKey 減少重建
2026-08-21
Astro 7.2 的 experimental incremental build 可跳過程式碼與資料未變的 prerendered pages。本文示範 incrementalBuild、cacheKey、CI cache 與失效檢查。
1712 字
|
9 分鐘
Cloudflare AI Gateway GPT-5.6 Sol 5 折怎麼用?先看 Unified Billing
2026-08-21
Cloudflare AI Gateway 的 GPT-5.6 Sol 促銷只適用 Unified Billing,模型 ID 是 openai/gpt-5.6-sol。本文整理價格、資格、到期日與切換前的費用檢查。
1220 字
|
6 分鐘
Cloudflare Gateway 怎麼偵測 MCP?用 Is MCP 建立封鎖規則
2026-08-21
Cloudflare Gateway 現在可辨識流經網路的 MCP 請求,並用 beta 的 Is MCP selector 與 AI security report 盤點流量、使用者、伺服器與 policy。
1612 字
|
8 分鐘
Cloudflare Hyperdrive MySQL 怎麼接?用 mysql2 設定 Workers binding
2026-08-20
Cloudflare Hyperdrive 已支援 MySQL GA。本文用 mysql2 示範 Wrangler binding、nodejs_compat、disableEval 與本機 localConnectionString,並整理連線、快取與資料庫防火牆的檢查順序。
1455 字
|
7 分鐘
Cloudflare Workers Local Explorer 怎麼用?用 wrangler dev 看 bindings、logs 與 traces
2026-08-20
Cloudflare Workers Local Explorer 可在 wrangler dev 中檢查 KV、R2、D1、Durable Objects、Workflow、logs 與 traces。本文整理版本需求、啟動方式、API 與安全的除錯流程。
1407 字
|
7 分鐘
pnpm 供應鏈安全怎麼設?用 minimumReleaseAge 與 trustPolicy 驗證 lockfile
2026-08-20
pnpm v11 已提供 minimumReleaseAge 與 trustPolicy 來延遲新版本、阻擋信任度下降。本文用 pnpm-workspace.yaml 設定、CI 驗證與例外清單,整理 lockfile 供應鏈防護邊界。
1481 字
|
7 分鐘
Wrangler dev 出現 Network connection lost 怎麼查?先做版本 bisect
2026-08-20
Wrangler dev 遇到 Network connection lost 或 fetch failed 時,先記錄 Wrangler、Miniflare、Node 與 runner,再用 4.113.0/4.114.0 做同樹版本比較,避免把上游回歸誤判成 Worker 程式錯誤。
1367 字
|
7 分鐘
Cloudflare AI Gateway 怎麼接 Access?用 cf.user_id 做使用者用量分流
2026-08-19
Cloudflare AI Gateway 接上 Access 後,可用登入身分分流請求與查看 User Insights。本文整理 custom domain、Access JWT、cf.user_id、service token 與預設 gateway endpoint 的差異。
1636 字
|
8 分鐘