ホームページ公開:AI 執筆 + ブランチプレビューのワークフロー
最初の記事であり、公開フロー全体の検証サンプルでもある。
公開フロー
- AI が
post/<slug>ブランチに日中二言語の記事を書く - Cloudflare Pages がプレビュー URL を自動生成
- 確認後
mainにマージして本番公開
ビルドのスクリーンショット
画像は記事と同じディレクトリに置き、ビルド時に WebP へ自動変換される:

コードハイライト
const posts = await getCollection('posts', (p) => langOf(p) === lang);
技術スタック
| 項目 | 選択 |
|---|---|
| フレームワーク | Astro |
| デプロイ | Cloudflare Pages |
| コンテンツ | Markdown / MDX |