ビルドログの開き方
- Cloudflareダッシュボード→「Workers & Pages」
- 対象プロジェクト→「Deployments」タブ
- 対象デプロイ→「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」を検索すると原因を見つけやすい