Vercel CLI でデプロイ前のドライランが可能に
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Vercel Blog
Vercel は CLI の新機能として、デプロイ実行前にフレームワーク設定や対象ファイルを確認する「dry-run」モードを追加した。これにより、JSON 形式で詳細なマニフェストを取得し、自動化や事前検証が可能になった。
Source Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Vercel CLI がデプロイメントに含めるフレームワークのプリセットやファイルは、デプロイを作成する前にプレビューできるようになりました。
リンクされたプロジェクトから vercel deploy --dry を実行してください:
自動化や詳細な確認のために、完全なファイルマニフェストを JSON として返すことができます:
JSON 出力には、検出されたフレームワーク、含まれるパスと無視されるパス、ディレクトリサイズの分布、最大のファイル、ファイルモード、コンテンツハッシュが含まれます。パイプ処理やその他の非 TTY 出力では自動的に JSON が使用されます。
エージェントはこのマニフェストをデプロイ前のチェックとして利用でき、フレームワークの検出を検証し、予期しないまたは欠落しているファイルを特定し、過大なアセットや異常なファイルモードにフラグを立て、.vercelignore またはプロジェクト設定を更新できます。コードをアップロードしたりデプロイを作成したりすることなく、マニフェストが意図したデプロイメントと一致するまでチェックを再実行できます。
開始するには Vercel CLI を v54.17.2 以降に更新してください。詳細は vercel deploy のドキュメントをご覧ください。
さらに読む
原文を表示
You can now preview the framework preset and files that Vercel CLI includes in a deployment before creating one.
Run vercel deploy --dry from a linked project:
For automation or further inspection, return the complete file manifest as JSON:
JSON output includes the detected framework, included and ignored paths, directory size distribution, largest files, file modes, and content hashes. Piped and other non-TTY output automatically uses JSON.
Agents can use this manifest as a pre-deployment check, verifying framework detection, identifying unexpected or missing files, flagging oversized assets or unusual file modes, and updating .vercelignore or project configuration. Agents can rerun the check until the manifest matches the intended deployment, without uploading code or creating a deployment.
Update the Vercel CLI to v54.17.2 or later to get started. Learn more in the vercel deploy documentation.
Read more
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み