Skip to content

Commit d28a7b7

Browse files
gn-t-kclaude
andcommitted
docs: Vercel自動デプロイの設定漏れに関するissueを記録する
fix/ブランチがdeploymentEnabledに未登録で自動デプロイが実行される問題を記録した。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 42a2581 commit d28a7b7

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# CI-2: vercel.jsonの`deploymentEnabled``fix/`ブランチが未登録
2+
3+
**対象**: `apps/web/vercel.json`
4+
**優先度**: 中
5+
6+
## 問題
7+
8+
PR #529(ブランチ: `fix/CI-1-document-review-workflow`)で、`with-preview`ラベルを付けていないにもかかわらず、Vercel GitHub Integrationの自動デプロイが実行された。
9+
10+
### 原因
11+
12+
`apps/web/vercel.json``git.deploymentEnabled``fix/`プレフィックスが含まれておらず、Vercelはリストにないブランチをデフォルト`true`として扱うため、自動デプロイが実行された。
13+
14+
本番・プレビューともにGitHub Actions(`production-deploy.yml` / `setup-preview.yml`)でデプロイを管理しているため、Vercel GitHub Integrationの自動デプロイは全ブランチで不要。
15+
16+
## 修正内容
17+
18+
ブランチ個別指定から`deploymentEnabled: false`に変更する。これにより、すべてのブランチでVercel GitHub Integrationの自動デプロイが無効化され、今後新しいブランチプレフィックスを追加しても設定漏れが発生しなくなる。
19+
20+
```json
21+
{
22+
"$schema": "https://openapi.vercel.sh/vercel.json",
23+
"git": {
24+
"deploymentEnabled": false
25+
}
26+
}
27+
```
28+
29+
## 対象ファイル
30+
31+
- `apps/web/vercel.json`
32+
33+
## 検証方法
34+
35+
- 修正後、PR上でVercelの自動デプロイステータスチェックが表示されなくなることを確認

0 commit comments

Comments
 (0)