Vercel Deploy logo

Vercel Deploy

Community
kazdenc
vercel-deploy

Deploy a project to Vercel with proper configuration, environment variables, domains, and preview deployments. Use when user says "deploy to Vercel", "set up Vercel", "configure deployment", "add a domain", "preview deploys", or needs to ship a project to production.

Overview

Publisherkazdenc
Repositorybuilder-skills
Skill namevercel-deploy
Stars
46
Forks
5
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by kazdenc on GitHub. Read the source before you install it.

Installation

Install the Vercel Deploy AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/setup/vercel-deploy
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kazdenc/builder-skills.git /tmp/builder-skills
mkdir -p .claude/skills
cp -r /tmp/builder-skills/.claude/skills/dev/setup/vercel-deploy .claude/skills/vercel-deploy
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Vercel Deploy in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Vercel Deploy on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Vercel Deploy is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Vercel Deployment

Deploy and configure a project on Vercel. If target specifies a particular concern (domains, env vars, etc.), focus there. Otherwise, do the full setup.

Step 1: Install and Authenticate

bash
pnpm add -g vercel
vercel login

If already installed, verify with vercel --version.

Step 2: Link the Project

From the project root:

bash
vercel link

Follow the prompts to connect to an existing Vercel project or create a new one. This creates a .vercel/ directory locally (already in .gitignore by default).

Step 3: Configure vercel.json

Create vercel.json in the project root only if you need non-default settings. Next.js projects usually need minimal config.

json
{
  "framework": "nextjs",
  "buildCommand": "pnpm build",
  "installCommand": "pnpm install",
  "headers": [
    {
      "source": "/(.*)",
      "headers": [
        { "key": "X-Content-Type-Options", "value": "nosniff" },
        { "key": "X-Frame-Options", "value": "DENY" },
        { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }
      ]
    }
  ],
  "redirects": [],
  "rewrites": []
}
FieldWhen to set
frameworkAuto-detected for Next.js. Set explicitly if detection fails.
buildCommandOverride if using a monorepo or custom build step
installCommandOverride if not using npm (e.g., pnpm install)
headersAdd security headers, CORS, caching
redirectsDomain migrations, URL restructuring
rewritesProxy API routes, SPA fallbacks
regionsPin serverless functions to specific regions (e.g., ["iad1"])

Step 4: Environment Variables

Set via CLI

bash
# Add for all environments
vercel env add NEXT_PUBLIC_APP_URL

# Add for specific environments
vercel env add DATABASE_URL production
vercel env add DATABASE_URL preview
vercel env add DATABASE_URL development

Environment Types

EnvironmentWhen usedNotes
ProductionMain branch deploysUse production database, real API keys
PreviewPR and branch deploysUse staging database, test API keys
Developmentvercel dev locallyMirrors .env.local

Pull env vars to local

bash
vercel env pull .env.local

This syncs your Vercel development env vars to .env.local. Never commit this file.

Common env var issues

ProblemFix
Env var not available at build timeEnsure it's set for the correct environment (Production/Preview)
Client-side var is undefinedPrefix with NEXT_PUBLIC_
Changed env var, still old valueRedeploy. Env vars are baked in at build time.
Secret leaking to clientRemove NEXT_PUBLIC_ prefix. Only server code can access non-prefixed vars.

Step 5: Custom Domains

Add a domain

bash
vercel domains add yourdomain.com

Configure DNS

Vercel provides DNS records to set. Common patterns:

Record typeNameValueUse case
A@76.76.21.21Root domain
CNAMEwwwcname.vercel-dns.comwww subdomain
CNAMEappcname.vercel-dns.comCustom subdomain

Redirect www to root (or vice versa)

Configure in Vercel Dashboard > Domains, or in vercel.json:

json
{
  "redirects": [
    {
      "source": "/:path((?!api/).*)",
      "has": [{ "type": "host", "value": "www.yourdomain.com" }],
      "destination": "https://yourdomain.com/:path",
      "permanent": true
    }
  ]
}

Step 6: Build Settings

Framework presets

Vercel auto-detects Next.js. Override only when needed:

SettingDefault (Next.js)Override when
Build commandnext buildMonorepo, custom scripts
Output directory.nextNever change for Next.js
Install commandnpm installUsing pnpm or yarn
Root directory/Monorepo (set to app directory)
Node.js version20.xNeed specific version

Monorepo setup

Set the root directory in Vercel project settings to the app's subdirectory:

Root Directory: apps/web

Or use vercel.json at the repo root:

json
{
  "ignoreCommand": "npx turbo-ignore"
}

Step 7: Preview Deployments

Every push to a non-production branch creates a preview deployment automatically.

Branch-based previews

  • Each PR gets a unique URL: <project>-<branch>-<team>.vercel.app
  • Comment bots post the preview URL on PRs
  • Preview deployments use "Preview" environment variables

Protect preview deployments

In Vercel Dashboard > Settings > General > Password Protection, enable password or Vercel Authentication for preview URLs.

Skip deployments for non-code changes

Add to vercel.json:

json
{
  "ignoreCommand": "git diff --quiet HEAD^ HEAD -- . ':!docs' ':!*.md'"
}

Step 8: Serverless and Edge Functions

Serverless function config

Next.js API routes and Server Actions deploy as serverless functions by default.

Set runtime and region in the route file:

ts
export const runtime = 'nodejs' // or 'edge'
export const maxDuration = 30   // seconds (default 10, max depends on plan)
export const preferredRegion = 'iad1'

Edge vs. Serverless

FeatureServerless (nodejs)Edge (edge)
Cold start~250ms~0ms
RuntimeFull Node.jsV8 (limited APIs)
Max duration10-300s (plan-dependent)30s
Use forDatabase queries, heavy computationAuth, redirects, geolocation
Node APIsFullSubset (no fs, limited crypto)

Step 9: Deploy

Preview deploy (from any branch)

bash
vercel

Production deploy

bash
vercel --prod

Via Git (recommended)

Connect the Git repo in Vercel Dashboard. Every push to main auto-deploys to production. Every PR branch gets a preview.

Troubleshooting

ProblemCauseFix
Build fails with module not foundMissing dependencyCheck package.json. Run pnpm install and retry.
Build fails with type errorsTypeScript strict modeFix type errors locally first: pnpm build
404 on dynamic routesMissing generateStaticParams or wrong configAdd export const dynamic = 'force-dynamic' or implement generateStaticParams
API route returns 500Unhandled error or missing env varCheck Vercel function logs: vercel logs <url>
Slow cold startsLarge function bundleReduce dependencies. Use edge runtime where possible.
CORS errorsMissing headersAdd CORS headers in vercel.json or middleware
Deployment stuckBuild queueCancel and retry: vercel --force

Deployment Checklist

TaskStatus
Vercel CLI installed and authenticated
Project linked with vercel link
vercel.json configured (if needed)
Env vars set for Production, Preview, Development
Custom domain added and DNS configured
SSL certificate provisioned (automatic)
Preview deployments working on PRs
vercel --prod deploys successfully
Security headers configured
Function regions set (if latency-sensitive)

Frequently asked questions

What does the Vercel Deploy AI skill do?

Deploy a project to Vercel with proper configuration, environment variables, domains, and preview deployments. Use when user says "deploy to Vercel", "set up Vercel", "configure deployment", "add a domain", "preview deploys", or needs to ship a project to production.

Why use Vercel Deploy on TypingMind?

Because you install it once and use it with any model. Vercel Deploy is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Vercel Deploy in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/kazdenc/builder-skills/tree/main/.claude/skills/dev/setup/vercel-deploy. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Vercel Deploy?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Vercel Deploy?

As many as you like. As long as a model supports skills, you can use Vercel Deploy with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Vercel Deploy AI skill free?

Yes. It is published on GitHub by kazdenc under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇