ZeroOne 繁體中文技術部落格

Astro 7 升級前要檢查什麼?從 Astro 5/6 到 Vite 8 的建置清單
Astro 7 把 Vite 8、Rust compiler、新 Markdown pipeline 與 src/fetch.ts 帶進升級路徑。本文整理 Astro 5/6 專案的版本順序、設定檔盤點、Markdown 外掛、建置與網址回歸檢查。
1719 字
|
9 分鐘
Cover Image of the Post
Cloudflare 1.1.1.1 DoH JSON 變了怎麼辦?先避免硬編碼 data 格式
Cloudflare 1.1.1.1 的 DoH JSON API 正在調整 additional record 的 data 格式,可能同時收到新舊回應。本文用 curl、record type 與 wireformat 分流,整理解析與遷移方式,適合處理 CAA、SVCB、HTTPS 與 DNSSEC。
1294 字
|
6 分鐘
Cover Image of the Post
CSS interpolate-size 怎麼用?讓 height: auto 動畫保留 fallback
CSS interpolate-size: allow-keywords 可讓元素在固定尺寸與 auto、max-content 等 intrinsic size 之間過渡。本文用可展開面板說明 fallback、calc-size()、overflow、可存取性與瀏覽器支援邊界。
1421 字
|
7 分鐘
Cover Image of the Post
Docker Compose Watch 怎麼用?用 sync、rebuild 分開本機開發流程
Docker Compose Watch 會根據檔案變更同步、重啟或重建服務。本文用 develop.watch 拆分原始碼、設定檔與依賴檔,並說明 Docker Compose 版本、權限、ignore 與 node_modules 的排錯重點。
1361 字
|
7 分鐘
Cover Image of the Post
Dependabot 分支名稱怎麼改?用 pull-request-branch-name 對齊 CI
Dependabot 現在能在 dependabot.yml 自訂 pull request 分支的前綴、分隔符號、大小寫與長度。本文整理基本設定、template、截斷雜湊與 CI 分支規則的驗證方式。
1350 字
|
7 分鐘
Cover Image of the Post
GitHub Actions reusable workflow 的 secrets: inherit 怎麼用?
GitHub Actions reusable workflow 不會自動收到 caller 的 secrets。本文比較明確傳遞與 secrets: inherit,整理直接呼叫、巢狀 workflow、environment secrets 與 Dependabot 的排錯邊界。
1485 字
|
7 分鐘
Cover Image of the Post
GitHub Code Scanning default setup 怎麼共用 CodeQL 設定檔?
GitHub Code Scanning default setup 現在可用 github-codeql-config-file 套用自訂 CodeQL 設定。本文整理中央設定檔、repository property、私有 registry 與組織 rollout 的驗證順序。
1340 字
|
7 分鐘
Cover Image of the Post
GitHub Copilot cloud agent 的 reasoning level 怎麼選?先把深度與額度分開
GitHub Copilot cloud agent 新增 reasoning level,可在啟動任務時控制模型思考深度,但較高等級會消耗更多 tokens 與 AI credits。本文整理任務選擇、方案限制與看不到選項時的檢查順序。
1454 字
|
7 分鐘
Cover Image of the Post