ZeroOne 繁體中文技術部落格

Cloudflare Workers request body 已被讀取怎麼修?先找第一個 reader 再 clone
Cloudflare Workers 出現 request body already used 或 TypeError 時,先找出哪個 middleware 讀了 json、formData 或 text,再選擇單次解析、事前 clone 或串流轉送,避免重複讀取和不必要的記憶體負擔。
1711 字
|
9 分鐘
Cover Image of the Post
GitHub OAuth App 多個 callback URL 怎麼設?一起檢查 wildcard 與 refresh token
GitHub OAuth App 現在可登記多個 callback URL,也能使用短效 access token 與 refresh token。本文整理 redirect_uri、wildcard、PKCE 與 token 輪替的設定與驗證順序。
1791 字
|
9 分鐘
Cover Image of the Post
pnpm ERR_PNPM_IGNORED_BUILDS 怎麼修?把允許清單搬到 allowBuilds
pnpm v11 遇到 ERR_PNPM_IGNORED_BUILDS 時,先確認被擋下的 lifecycle script,再把允許或拒絕決策寫進 pnpm-workspace.yaml 的 allowBuilds,最後用乾淨 CI 安裝驗證,不要只關掉 strictDepBuilds。
1697 字
|
8 分鐘
Cover Image of the Post
Cloudflare Gateway 套件註冊表安全怎麼設?先看 pkg.* 與 TLS 解密
Cloudflare Gateway 新增套件註冊表安全,可辨識 npm、PyPI、Cargo 等下載流量。本文整理 TLS 解密前提、pkg.* selector、版本比較、私有 mirror 與 fail-open 邊界。
1469 字
|
7 分鐘
Cover Image of the Post
Cloudflare Workers 怎麼套 Access?用 Worker scope 保護所有入口
Cloudflare Access 現在能直接套用到單一 Worker 或全部 Workers。本文整理 preview、production、workers.dev 與自訂網域的保護範圍,並用 wrangler dev 驗證登入身分。
1416 字
|
7 分鐘
Cover Image of the Post
Docker COPY 找不到檔案怎麼修?先確認 build context 與 .dockerignore
Docker 出現 COPY failed 或 file not found in build context 時,先確認建置指令的 context、Dockerfile 相對路徑與 .dockerignore,再決定要改 COPY 還是調整目錄。
1420 字
|
7 分鐘
Cover Image of the Post
GitHub Copilot Grok 4.6 怎麼開?先查 rollout、方案與 AI credits
GitHub Copilot 正逐步推出 Grok 4.6。本文整理支援的方案與入口、Business/Enterprise 管理員政策、逐步 rollout、AI credits 計費,以及選不到模型時的驗證順序。
1556 字
|
8 分鐘
Cover Image of the Post
Astro Cloudflare 為什麼有 SESSION KV?用 session: false 關掉不需要的狀態
使用 @astrojs/cloudflare 部署 Astro 時,為什麼會看到 SESSION KV binding?本文說明 adapter 預設行為、Astro 7.2.0 的 session: false、sessionKVBindingName 與 Astro.session 的取捨,並整理部署驗證。
1333 字
|
7 分鐘
Cover Image of the Post