agentsclimarketplace

Vercel prod ship

Skill bokuwalily/claude-code-skills/skills/vercel-prod-ship

Vercel に本番デプロイし、production URL に alias を貼って疎通確認するまでの一気通貫パターン。発火: `vercel --prod` 入力時、本番リリース時、deploy command 失敗復旧時From its SKILL.md

Install
npx -y skills add bokuwalily/claude-code-skills --skill vercel-prod-ship

Assembled 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

  1. pre-flight: ローカルビルド成功を確認

    npm run build
    

    失敗したら deploy せず修正。

  2. deploy: ログを残しつつ vercel --prod を実行

    vercel --prod 2>&1 | tee /tmp/vercel-deploy.log
    
  3. deployment URL 抽出: ログから *.vercel.app を取り出す

    DEPLOY_URL=$(grep -oE 'https://[^ ]+\.vercel\.app' /tmp/vercel-deploy.log | head -1)
    echo "$DEPLOY_URL"
    
  4. alias 貼り: production ドメインに紐付け

    vercel alias "$DEPLOY_URL" <production-domain>
    
  5. 疎通確認: production ドメインに HEAD リクエスト

    curl -sI https://<production-domain> | head -1
    

    HTTP/2 200 を確認。

  6. 失敗時のログ確認: 404/500 が出た場合

    vercel logs https://<production-domain> --since=5m
    

Pitfalls

  • vercel --prod だけだと preview 用の *.vercel.app URL のままで、本番ドメインには反映されない。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.jsonoutputDirectory を確認。

  • 既存 /deployship-safe は汎用フロー。このスキルは vercel CLI 限定の 2 段(deploy → alias)パターン。

Verification

  • deployment URL: https://<project>-<hash>.vercel.app 形式が抽出できている

  • production domain: curl -sIHTTP/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.

Keep looking

Skills are one crate of 326,834. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.