Vercel Deploymentのロゴ

Vercel Deployment

コミュニティ
Omar-Obando
vercel-deployment

Use when deploying applications to Vercel, configuring serverless functions, edge computing, caching strategies, and optimizing Next.js deployments. Includes Vercel CLI, Edge Functions, and performance optimization. Based on Vercel Certified Developer and modern web deployment best practices.

概要

公開者Omar-Obando
リポジトリqwen-orchestrator
スキル名vercel-deployment
スター
53
フォーク
13
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Omar-ObandoがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Vercel Deployment」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/vercel-deployment
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Omar-Obando/qwen-orchestrator.git /tmp/qwen-orchestrator
mkdir -p .claude/skills
cp -r /tmp/qwen-orchestrator/skills/vercel-deployment .claude/skills/vercel-deployment
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでVercel Deploymentを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にVercel Deploymentを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Vercel Deploymentは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Vercel Deployment Skill — Serverless & Edge Computing

Overview

This skill provides comprehensive guidance for deploying applications to Vercel, configuring serverless functions, edge computing, caching strategies, and optimizing Next.js deployments. It includes Vercel CLI, Edge Functions, and performance optimization. Based on Vercel Certified Developer and modern web deployment best practices.

When to Use

Use this skill when:

  • Deploying Next.js applications to Vercel
  • Configuring serverless functions for Vercel Functions
  • Setting up edge computing with Vercel Edge Functions
  • Optimizing caching strategies (edge caching, static asset caching)
  • Using Vercel CLI for development (vercel dev) and deployment
  • Configuring environment variables and secrets in Vercel
  • Setting up preview deployments for pull requests
  • Configuring custom domains and SSL certificates
  • Optimizing Next.js build configurations for Vercel
  • Implementing middleware at the edge
  • Using Vercel Analytics and monitoring
  • Deploying with Git integration (GitHub, GitLab, Bitbucket)
  • Setting up automatic deployments on push
  • Configuring build environment variables

Do NOT use this skill when:

  • Writing application business logic (use developer skill or specific framework skill)
  • Designing database schema (use database-design skill)
  • Creating UI components (use frontend-design skill)
  • Managing non-Vercel cloud infrastructure (use aws-serverless, azure-cloud, or gcp-cloud skills)
  • Performing security audits (use security-auditor skill)
  • Setting up Kubernetes deployments (use devops-pipeline skill)
  • Deploying to Cloudflare Pages (use cloudflare-pages skill)
  • Developing Cloudflare Workers (use cloudflare-workers skill)

Why avoid: Vercel is specific to Next.js and Vercel infrastructure. For other platforms or infrastructure, use targeted skills.

Deployment Targets

Serverless Functions

javascript
// next.config.js
module.exports = {
  target: 'serverless',
  // Other options are still valid
};

Characteristics:

  • Minimal lambda size (~49KB)
  • Optimized cold start performance
  • No runtime dependencies
  • Self-contained build output

Edge Functions

typescript
// middleware.ts
import { edgeFunction } from '@vercel/edge';

export default edgeFunction({
  deploymentTarget: 'v8-worker',
  entrypoint: 'middleware.js',
  environment: {
    FEATURE_FLAG: 'true',
  },
  regions: 'all', // or ['iad1', 'cdg1']
});

Characteristics:

  • Runs on Cloudflare Workers runtime
  • Global distribution
  • Low latency
  • No cold starts

Vercel CLI Commands

Development

bash
# Start development server
vercel dev

# Deploy with preview
vercel --prod

# Deploy with production
vercel --prod --prod

# Deploy with environment variables
vercel --prod --env NODE_ENV=production

Deployment

bash
# Deploy to production
vercel --prod

# Deploy with custom domain
vercel --prod --prod-domain=example.com

# Deploy with build environment
vercel --prod --build-env NODE_ENV=production

Configuration

json
// vercel.json
{
  "buildCommand": "npm run build",
  "devCommand": "npm run dev",
  "installCommand": "npm install",
  "framework": "nextjs",
  "regions": ["sfo1", "iad1"],
  "headers": [
    {
      "source": "/api/(.*)",
      "headers": [
        {
          "key": "Cache-Control",
          "value": "no-store"
        }
      ]
    }
  ]
}

Performance Optimization

Caching Strategies

typescript
// API route with caching
export default async function handler(req, res) {
  res.setHeader('Cache-Control', 'public, max-age=31536000, immutable');
  res.status(200).json({ data: 'cached' });
}

Image Optimization

jsx
import Image from 'next/image';

export default function MyImage() {
  return (
    <Image
      src="/logo.png"
      alt="Logo"
      width={200}
      height={100}
      priority
      loading="eager"
    />
  );
}

Edge Caching

typescript
// Edge function with caching
export default async function request(request: Request) {
  const url = new URL(request.url);

  if (url.pathname === '/api/data') {
    return new Response(JSON.stringify({ data: 'cached' }), {
      headers: {
        'Cache-Control': 'public, max-age=86400',
      },
    });
  }

  return new Response('Not Found', { status: 404 });
}

Environment Variables

Project Settings

bash
# Set environment variable
vercel env add DATABASE_URL

# Set production environment variable
vercel env add DATABASE_URL production

# List environment variables
vercel env ls

# Remove environment variable
vercel env rm DATABASE_URL

Vercel Dashboard

  1. Navigate to project settings
  2. Go to "Environment Variables"
  3. Add variables for each environment
  4. Set "Production", "Preview", or "Development" scope

Deployment Strategies

Preview Deployments

bash
# Create preview deployment
vercel --prod

# Deploy with custom branch
vercel --prod --prod-branch=feature-branch

Production Deployments

bash
# Production deployment
vercel --prod

# Production deployment with custom domain
vercel --prod --prod-domain=example.com

Edge Function Examples

Authentication Edge Function

typescript
// middleware.ts
import { edgeFunction } from '@vercel/edge';

export default edgeFunction({
  deploymentTarget: 'v8-worker',
  entrypoint: 'middleware.js',
});

// middleware.js
export default async function handler(request) {
  const url = new URL(request.url);

  // Skip static assets
  if (url.pathname.startsWith('/_next') || url.pathname.includes('.')) {
    return null;
  }

  // Check authentication
  const token = request.headers.get('Authorization');
  if (!token && url.pathname !== '/login') {
    return new Response('Unauthorized', { status: 401 });
  }

  return null; // Continue to next handler
}

API Routing Edge Function

typescript
// api/middleware.ts
export default async function handler(request) {
  const url = new URL(request.url);

  switch (url.pathname) {
    case '/api/users':
      return handleUsers(request);
    case '/api/products':
      return handleProducts(request);
    default:
      return new Response('Not Found', { status: 404 });
  }
}

async function handleUsers(request) {
  // Handle users API
  return new Response(JSON.stringify({ users: [] }), {
    headers: { 'Content-Type': 'application/json' },
  });
}

Common Anti-Patterns

❌ Bad: Large Lambda Functions

javascript
// ❌ BAD: Large lambda with many dependencies
import { bigLibrary } from 'big-library';

export default async function handler(req, res) {
  // Heavy initialization
  const result = bigLibrary.process(req.body);
  res.json(result);
}

Problems:

  • Slow cold starts
  • High memory usage
  • Expensive execution

✅ Good: Optimized Lambda

javascript
// ✅ GOOD: Optimized lambda
export default async function handler(req, res) {
  // Lightweight processing
  const result = processRequest(req.body);
  res.json(result);
}

function processRequest(body) {
  // Simple, focused logic
  return { processed: true };
}

❌ Bad: No Caching

typescript
// ❌ BAD: No caching on static assets
export default async function handler(request) {
  const file = await readFile('/public/image.png');
  return new Response(file, {
    headers: {
      'Content-Type': 'image/png',
      // Missing Cache-Control header
    },
  });
}

✅ Good: With Caching

typescript
// ✅ GOOD: With caching
export default async function handler(request) {
  const file = await readFile('/public/image.png');
  return new Response(file, {
    headers: {
      'Content-Type': 'image/png',
      'Cache-Control': 'public, max-age=31536000, immutable',
    },
  });
}

Real-World Impact

Before this skill:

  • Slow deployments
  • Poor caching
  • High latency
  • Expensive Lambda functions

After this skill:

  • Fast deployments
  • Optimal caching
  • Low latency
  • Cost-effective functions

Cross-References

  • devops-pipeline - For CI/CD integration
  • architecture-patterns - For serverless architecture design
  • testing-strategy - For testing serverless functions

References

よくある質問

AIスキル「Vercel Deployment」では何ができますか?

Use when deploying applications to Vercel, configuring serverless functions, edge computing, caching strategies, and optimizing Next.js deployments. Includes Vercel CLI, Edge Functions, and performance optimization. Based on Vercel Certified Developer and modern web deployment best practices.

TypingMindでVercel Deploymentを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Vercel Deploymentはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにVercel Deploymentをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Omar-Obando/qwen-orchestrator/tree/main/skills/vercel-deploymentを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Vercel Deploymentを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Vercel Deploymentで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもVercel Deploymentを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Vercel Deployment」は無料ですか?

はい。Omar-ObandoがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇