ZeroOne 繁體中文技術部落格

Astro preview --background 怎麼用?用 status、logs、stop 管理本機預覽
Astro 7.2.0 新增 preview --background,可在背景啟動預覽並用 status、logs、stop 管理。本文整理版本檢查、build 順序、CI 清理與自動背景模式的邊界。
1176 字
|
6 分鐘
Cover Image of the Post
Cloudflare Pages 的 Astro 檔案數超過怎麼辦?先分清 Pages 與 Workers
Astro 部署到 Cloudflare Pages 失敗時,先計算 dist 檔案數與單檔大小,再比較 Free、付費 Pages 和 Workers Static Assets。本文也說明純靜態、SSR 與 bindings 的選擇邊界。
1342 字
|
7 分鐘
Cover Image of the Post
Cloudflare Workers AI DeepSeek V4 怎麼用?先看模型、context 與付費邊界
Cloudflare Workers AI 新增 DeepSeek V4 Flash 與 Pro。本文整理模型 ID、百萬 token context、function calling、付費要求與 env.AI.run() 的驗證方式,避免把新模型誤當成 Free 額度。
1299 字
|
6 分鐘
Cover Image of the Post
Docker Compose 的 env_file 與 ${VAR} 怎麼分?解決變數插值為空
Docker Compose 的 service env_file 不會自動填入 image、port 或 build 的 ${VAR}。本文說明 --env-file、.env、shell precedence 與 config 驗證,讓缺少變數在啟動前失敗。
1191 字
|
6 分鐘
Cover Image of the Post
Vite 的 VITE_ 環境變數會外洩嗎?從 bundle 找出不該公開的 secret
Vite 會在建置時把 VITE_ 變數送進前端 bundle。本文整理公開設定與 API secret 的分界、dist 檢查、envPrefix 調整,以及外洩後的輪替與重新部署流程,避免修正後仍部署舊資產。
1341 字
|
7 分鐘
Cover Image of the Post
Astro Content Collection 太大怎麼辦?用 collectionStorage 分塊儲存
Astro Content Collection 產生過大的 .astro/data-store.json 時,本文說明 experimental collectionStorage 的 chunked 設定、20 MB 預設分塊、chunkSize 與部署產物驗證,避免只改設定卻漏掉 adapter。
1377 字
|
7 分鐘
Cover Image of the Post
Docker Build secrets 怎麼用?用 --secret 取代 ARG 與 ENV
Docker 建置需要 npm token、私有套件憑證或 SSH 金鑰時,本文比較 ARG、ENV、secret mount 與 SSH mount,示範 required、BuildKit cache 與 GitHub Actions 驗證,避免金鑰進 image。
1498 字
|
7 分鐘
Cover Image of the Post
GitHub Actions 步驟怎麼平行執行?用 background、wait 與 parallel
GitHub Actions 現在可用 parallel、background、wait、wait-all 與 cancel 管理同一個 job 的並行工作。本文分開獨立建置、背景服務、失敗回報與清理流程,並說明何時改用 matrix 或不同 job。
1684 字
|
8 分鐘
Cover Image of the Post