ビルドログの開き方

  1. Cloudflareダッシュボード→「Workers & Pages」
  2. 対象プロジェクト→「Deployments」タブ
  3. 対象デプロイ→「View build logs」

成功時のログの流れ

Cloning repository...
Installing project dependencies
Executing user command
Uploading...
Success: Your site was deployed

よくあるエラーと対処法

Astro.glob is not a function

Astro 5以降で廃止。import.meta.glob() に書き換える。

Cannot find module

npm install @astrojs/sitemap

古いコミットがデプロイされている

git commit --allow-empty -m "force deploy"
git push

ハマったポイント

  • Failed の直前にエラーの原因が書いてある
  • Ctrl+F で「ERROR」を検索すると原因を見つけやすい

関連記事