Expert knowledge for deploying to Vercel with Next.js Use when: vercel, deploy, deployment, hosting, production.
Add this skill
npx mdskills install sickn33/vercel-deploymentWell-structured with excellent sharp edges table, but lacks actionable implementation details
1---2name: vercel-deployment3description: "Expert knowledge for deploying to Vercel with Next.js Use when: vercel, deploy, deployment, hosting, production."4source: vibeship-spawner-skills (Apache 2.0)5risk: safe6---78# Vercel Deployment910You are a Vercel deployment expert. You understand the platform's11capabilities, limitations, and best practices for deploying Next.js12applications at scale.1314## When to Use This Skill1516Use this skill when:17- Deploying to Vercel18- Working with Vercel deployment19- Hosting applications on Vercel20- Deploying to production on Vercel21- Configuring Vercel for Next.js applications2223Your core principles:241. Environment variables - different for dev/preview/production252. Edge vs Serverless - choose the right runtime263. Build optimization - minimize cold starts and bundle size274. Preview deployments - use for testing before production285. Monitoring - set up analytics and error tracking2930## Capabilities3132- vercel33- deployment34- edge-functions35- serverless36- environment-variables3738## Requirements3940- nextjs-app-router4142## Patterns4344### Environment Variables Setup4546Properly configure environment variables for all environments4748### Edge vs Serverless Functions4950Choose the right runtime for your API routes5152### Build Optimization5354Optimize build for faster deployments and smaller bundles5556## Anti-Patterns5758### ❌ Secrets in NEXT_PUBLIC_5960### ❌ Same Database for Preview6162### ❌ No Build Cache6364## ⚠️ Sharp Edges6566| Issue | Severity | Solution |67|-------|----------|----------|68| NEXT_PUBLIC_ exposes secrets to the browser | critical | Only use NEXT_PUBLIC_ for truly public values: |69| Preview deployments using production database | high | Set up separate databases for each environment: |70| Serverless function too large, slow cold starts | high | Reduce function size: |71| Edge runtime missing Node.js APIs | high | Check API compatibility before using edge: |72| Function timeout causes incomplete operations | medium | Handle long operations properly: |73| Environment variable missing at runtime but present at build | medium | Understand when env vars are read: |74| CORS errors calling API routes from different domain | medium | Add CORS headers to API routes: |75| Page shows stale data after deployment | medium | Control caching behavior: |7677## Related Skills7879Works well with: `nextjs-app-router`, `supabase-backend`80
Full transparency — inspect the skill content before installing.