Vercel prod ship
Vercel に本番デプロイし、production URL に alias を貼って疎通確認するまでの一気通貫パターン。発火: `vercel --prod` 入力時、本番リリース時、deploy command 失敗復旧時From its SKILL.md
npx -y skills add bokuwalily/claude-code-skills --skill vercel-prod-shipAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, 818 tokens by cl100k_base, as published. Nobody here has run it
vercel-prod-ship
vercel --prod で生成される preview 用 deployment URL を、production ドメインに alias して 200 OK 疎通まで確認する 2 段デプロイ手順。
Procedure
-
pre-flight: ローカルビルド成功を確認
npm run build失敗したら deploy せず修正。
-
deploy: ログを残しつつ
vercel --prodを実行vercel --prod 2>&1 | tee /tmp/vercel-deploy.log -
deployment URL 抽出: ログから
*.vercel.appを取り出すDEPLOY_URL=$(grep -oE 'https://[^ ]+\.vercel\.app' /tmp/vercel-deploy.log | head -1) echo "$DEPLOY_URL" -
alias 貼り: production ドメインに紐付け
vercel alias "$DEPLOY_URL" <production-domain> -
疎通確認: production ドメインに HEAD リクエスト
curl -sI https://<production-domain> | head -1HTTP/2 200を確認。 -
失敗時のログ確認: 404/500 が出た場合
vercel logs https://<production-domain> --since=5m
Pitfalls
-
vercel --prodだけだと preview 用の*.vercel.appURL のままで、本番ドメインには反映されない。alias 必須。 -
alias 先の domain は事前に
vercel domains add <domain>済みであること。未登録だと alias が失敗する。 -
next.config.jsの env 変数が prod / preview で別値になっているケースあり。値ズレで 500 になることがある。 -
アカウント / team 切り替え忘れ:
vercel whoami vercel switch <team> -
build 成果物が
.next以外(out/等 static export)の場合はvercel.jsonのoutputDirectoryを確認。 -
既存
/deployやship-safeは汎用フロー。このスキルは vercel CLI 限定の 2 段(deploy → alias)パターン。
Verification
-
deployment URL:
https://<project>-<hash>.vercel.app形式が抽出できている -
production domain:
curl -sIでHTTP/2 200(または期待のステータス) -
alias 反映確認:
vercel ls --prod | head -3最新の deployment が production ドメインに紐付いていること。
-
念のためブラウザ実 URL でも確認(キャッシュ・edge 反映遅延の可能性)。
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.