ZeroOne 繁體中文技術部落格

Astro Advanced Routing 怎麼用?用 src/fetch.ts 插入請求管線
Astro 7 的 Advanced Routing 會把 src/fetch.ts 當成請求管線入口。本文用 astro/fetch 示範保留內建路由、加入前後置邏輯、改名 fetchFile 與停用入口,並整理升級時的保留檔名風險。
1349 字
|
7 分鐘
Cover Image of the Post
Cloudflare Workers Preview URL 怎麼關?用 workers_dev 與 preview_urls 避免誤公開
Cloudflare Workers 的 Preview URL 可能和 workers.dev 使用不同預設。本文整理 Wrangler 版本差異、preview_urls 設定、Dashboard 開關與 Cloudflare Access,協助你在測試、部署與關閉公開入口時先確認實際暴露範圍。
1288 字
|
6 分鐘
Cover Image of the Post
Wrangler secret bulk 怎麼用?批次更新、刪除 Cloudflare Workers Secrets
Wrangler secret bulk 可用一個 JSON 或 .env 檔批次管理 Cloudflare Workers Secrets。本文整理新增、更新、刪除與保留未列出項目的差異,並比較部署時的 --secrets-file、檔案保護與 CI 驗證流程。
1404 字
|
7 分鐘
Cover Image of the Post
GitHub Actions workflow execution protections 怎麼設?用 ruleset 限制誰能觸發 CI
GitHub Actions workflow execution protections 可用 ruleset 限制觸發 CI 的 actor 與 event。本文說明 public preview、evaluate mode,以及它和 on、permissions、environment reviewer 的分工。
1400 字
|
7 分鐘
Cover Image of the Post
pnpm 11.21.0 修了 GitHub 依賴 CI 的 publickey 錯誤:升級前後怎麼驗證
pnpm 11.21.0 修正 GitHub shorthand dependency 在沒有 SSH key 的 CI runner 上誤走 SSH 的問題。本文整理 github:owner/repo、git+https 與 git+ssh 的差異,並提供 lockfile 與 CI 驗證順序。
1157 字
|
6 分鐘
Cover Image of the Post
Cloudflare Workers AI 出現 403/5035 怎麼辦?先查模型與付費方案
Cloudflare Workers AI 呼叫 Kimi K2.6、Kimi K2.7 Code 或 GLM 5.2 出現 403/5035 時,不一定是 binding 或 token 問題。本文整理付費帳單、AI Gateway credits、Free 額度與替代模型的排查順序。
1402 字
|
7 分鐘
Cover Image of the Post
Cloudflare Workers 啟動太慢怎麼查?用 Wrangler check startup 找出 bundle 與全域初始化
Cloudflare Workers 部署遇到 Script startup exceeded CPU time limit 時,先用 Wrangler check startup 和 CPU profile 分清楚 bundle 太大、全域初始化太重與本機量測差異。本文整理驗證、讀圖與修正順序。
1403 字
|
7 分鐘
Cover Image of the Post
GitHub Actions artifact 少了 .env?upload-artifact 的隱藏檔案安全設定
GitHub Actions 使用 upload-artifact 後找不到 .output 或 .config 等隱藏檔案時,先確認 action 版本與 include-hidden-files。本文示範安全的 allowlist、排除敏感檔案、失敗條件與 artifact 驗證流程。
1205 字
|
6 分鐘
Cover Image of the Post