File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 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の自動デプロイステータスチェックが表示されなくなることを確認
You can’t perform that action at this time.
0 commit comments