VE

vercel-migration-deep-dive

Manage complex migrations to Vercel with strategies for configuration mapping and incremental cutovers.

Install

mkdir -p .claude/skills/vercel-migration-deep-dive && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/7440" && unzip -o skill.zip -d .claude/skills/vercel-migration-deep-dive && rm skill.zip

Installs to .claude/skills/vercel-migration-deep-dive

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Migrate to Vercel from other platforms or re-architecture existing Vercel
73 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Map configurations from Netlify, AWS, or Cloudflare to Vercel
  • Convert legacy function handlers to Vercel serverless format
  • Migrate environment variables with production, preview, and development scoping
  • Implement strangler fig pattern for incremental traffic migration
  • Execute DNS cutover and SSL provisioning
  • Validate feature parity between old and new deployments

How it works

The skill maps legacy platform configurations to Vercel equivalents and provides a phased migration path using the strangler fig pattern to route traffic incrementally.

Inputs & outputs

You give it
Legacy project source code and hosting configuration
You get back
Vercel-compatible project with migrated functions, environment variables, and DNS

When to use vercel-migration-deep-dive

  • Migrate project from Netlify to Vercel
  • Re-platform AWS Lambda functions to Vercel
  • Execute phased migration of legacy apps
  • Validate feature parity during platform switch

About this skill

Vercel Migration Deep Dive

Overview

Migrate applications to Vercel from Netlify, AWS (Lambda/CloudFront/S3), Cloudflare Workers, or traditional hosting. Covers configuration mapping, DNS cutover, feature parity validation, and incremental migration with the strangler fig pattern.

Current State

!vercel --version 2>/dev/null || echo 'Vercel CLI not installed' !cat package.json 2>/dev/null | jq -r '.name // "no package.json"' 2>/dev/null || echo 'N/A'

Prerequisites

  • Access to current hosting platform
  • Git repository with application source
  • DNS management access for domain cutover
  • Vercel account (Pro recommended for production)

Instructions

Step 1: Configuration Mapping

From Netlify:

NetlifyVercel Equivalent
netlify.tomlvercel.json
_redirects / _headersvercel.json redirects/headers
Netlify Functions (netlify/functions/)API routes (api/)
Netlify Edge FunctionsEdge Middleware or Edge Functions
NETLIFY_ENVVERCEL_ENV
Deploy previewsPreview deployments (automatic)
Branch deploysBranch preview URLs
// Netlify _redirects → vercel.json
// FROM: /old-page /new-page 301
// TO:
{
  "redirects": [
    { "source": "/old-page", "destination": "/new-page", "permanent": true }
  ]
}

// Netlify _headers → vercel.json
// FROM: /* X-Frame-Options: DENY
// TO:
{
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        { "key": "X-Frame-Options", "value": "DENY" }
      ]
    }
  ]
}

From AWS (Lambda + CloudFront + S3):

AWSVercel Equivalent
Lambda functionsServerless Functions (api/)
Lambda@EdgeEdge Functions / Middleware
CloudFront distributionsAutomatic CDN
S3 static hostingpublic/ directory
API GatewayAutomatic routing
CloudFront behaviorsvercel.json rewrites
AWS SAM/CDKvercel.json
Secrets ManagerEnvironment Variables
// AWS Lambda handler → Vercel Function
// FROM:
export const handler = async (event) => {
  return { statusCode: 200, body: JSON.stringify({ hello: 'world' }) };
};

// TO:
import type { VercelRequest, VercelResponse } from '@vercel/node';
export default function handler(req: VercelRequest, res: VercelResponse) {
  res.status(200).json({ hello: 'world' });
}

From Cloudflare Workers/Pages:

CloudflareVercel Equivalent
WorkersEdge Functions
Pages FunctionsAPI routes
KVVercel KV or Edge Config
R2Vercel Blob
D1Vercel Postgres
wrangler.tomlvercel.json

Step 2: Migrate Functions

# Create Vercel project
vercel link

# Move function files to api/ directory
mkdir -p api
# Convert each function to Vercel format

# Install Vercel types
npm install --save-dev @vercel/node

Step 3: Migrate Environment Variables

# Export from current platform, add to Vercel
# Netlify:
netlify env:list --json | jq -r '.[] | "\(.key)=\(.values[0].value)"' > .env.migration

# Add each to Vercel with proper scoping
while IFS='=' read -r key value; do
  echo "$value" | vercel env add "$key" production preview development
done < .env.migration

# Verify
vercel env ls

Step 4: Incremental Migration (Strangler Fig)

Route traffic incrementally from old platform to Vercel:

// Phase 1: Route /api/* to Vercel, keep everything else on old platform
// On old platform, add a rewrite/proxy:
// /api/* → https://my-app.vercel.app/api/*

// Phase 2: Move static pages to Vercel
// Update DNS for staging subdomain first:
// staging.example.com → cname.vercel-dns.com

// Phase 3: Move production
// Update DNS A record: example.com → 76.76.21.21

Step 5: DNS Cutover

# Add domain to Vercel
vercel domains add example.com

# Verify domain ownership
vercel domains inspect example.com

# DNS records to set:
# Apex domain (example.com):
#   A → 76.76.21.21
#
# Subdomain (www.example.com):
#   CNAME → cname.vercel-dns.com
#
# Or transfer nameservers to Vercel:
#   NS → ns1.vercel-dns.com
#   NS → ns2.vercel-dns.com

# Wait for DNS propagation (check with dig)
dig example.com A +short
# Should return 76.76.21.21

# SSL certificate auto-provisions after DNS verification

Step 6: Validate Feature Parity

# Compare old and new deployments
# Test all routes
for path in "/" "/about" "/api/health" "/api/users"; do
  echo "=== $path ==="
  echo "Old:"
  curl -sI "https://old.example.com${path}" | head -3
  echo "New:"
  curl -sI "https://my-app.vercel.app${path}" | head -3
done

# Compare headers
diff <(curl -sI https://old.example.com/ | sort) \
     <(curl -sI https://my-app.vercel.app/ | sort)

# Check redirects still work
curl -sI https://my-app.vercel.app/old-page | grep Location

Migration Checklist

StepValidated
All functions converted to Vercel formatRequired
Environment variables migrated with correct scopingRequired
Redirects and headers ported to vercel.jsonRequired
DNS configured and SSL provisionedRequired
Preview deployment tested end-to-endRequired
Performance baseline compared (old vs new)Recommended
Monitoring and alerting configuredRequired
Rollback plan documented (DNS revert)Required
Old platform kept running during validation periodRecommended

Output

  • Configuration mapped from source platform to Vercel
  • Functions converted to Vercel serverless/edge format
  • Environment variables migrated with proper scoping
  • DNS cutover completed with SSL auto-provisioning
  • Feature parity validated

Error Handling

ErrorCauseSolution
Function format mismatchAWS/Netlify handler signatureConvert to (req, res) or Web API format
Missing env var after migrationNot added to correct environmentRe-add with vercel env add
DNS not resolvingPropagation delayWait 24-48 hours, check with dig
SSL not provisioningDNS records incorrectVerify A/CNAME records match Vercel's requirements
404 on migrated routesDifferent path conventionsAdd rewrites in vercel.json

Resources

Next Steps

For advanced troubleshooting, see vercel-advanced-troubleshooting.

Prerequisites

Access to current hosting platformGit repository with application sourceDNS management accessVercel account

Limitations

  • Requires manual conversion of function handler signatures
  • DNS propagation may require 24-48 hours
  • Requires keeping the old platform running during the validation period

How it compares

Unlike manual migration, this provides specific mapping tables for Netlify, AWS, and Cloudflare to Vercel and automates environment variable scoping.

Compared to similar skills

vercel-migration-deep-dive side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vercel-migration-deep-dive (this skill)126dCautionIntermediate
senior-fullstack357moReviewIntermediate
nextjs-best-practices316moNo flagsIntermediate
add-setting-env42moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry