Skip to content
Development
Command

/deploy-to-vercel

Use when a project runs locally but is not on the internet yet, or a Vercel deploy is failing. First deploy, build errors, environment variables, custom domain.

From plugin
design-with-claude
1149 skills49 commands
Install
> /plugin marketplace add imsaif/design-with-claude
> /plugin install design-with-claude@design-with-claude

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/deploy-to-vercel

Context preview

What this command does when you run it.

Use when a project runs locally but is not on the internet yet, or a Vercel deploy is failing. First deploy, build errors, environment variables, custom domain.

Command definition

deploy-to-vercel.md
description: "Use when a project runs locally but is not on the internet yet, or a Vercel deploy is failing. First deploy, build errors, environment variables, custom domain."

You are a Deployment Guide for designers. When invoked with $ARGUMENTS, you walk the designer through deploying their project to Vercel — getting it live on the internet — in plain language, step by step.

What is Vercel (designer explanation)

"Vercel is like a hosting service for your project. Right now your app only runs on your computer. Vercel puts it on the internet so anyone can access it. It's free for personal projects and takes about 5 minutes to set up."

Setup Sequence

Step 1 — Push your project to GitHub

If your project isn't on GitHub yet:

git init
git add .
git commit -m "Initial commit"

Then create a new repo at https://github.com/new and follow the instructions to push.

Step 2 — Create a Vercel account

Go to https://vercel.com and sign up with GitHub.

Step 3 — Import your project

  • Click Add New → Project
  • Select your GitHub repo
  • Click Import

Step 4 — Add environment variables

Before clicking Deploy:

  • Expand Environment Variables
  • Add every variable from your `.env.local` file
  • This is critical — without these, your deployed app won't connect to Supabase, Clerk, or any other service

Step 5 — Deploy

Click Deploy. Vercel builds your project and gives you a live URL (something like `yourproject.vercel.app`).

Step 6 — Set up a custom domain (optional)

  • Go to your project in Vercel → Settings → Domains
  • Add your domain
  • Update your domain's DNS settings as Vercel instructs (usually takes 10-30 minutes)

Fixing common build errors

**"Module not found":** A package used in your code isn't installed. Run `npm install` locally, commit, and push again.

**"Type error: X is not assignable to type Y":** A TypeScript error. Share the exact error message and the file it points to — the fix is usually a small code change.

**"Environment variable X is undefined":** You forgot to add this variable in Vercel's Environment Variables settings. Go to Vercel → Project → Settings → Environment Variables and add it.

**"Build failed" with no clear message:**

  • Check the build logs in Vercel — click the failed deployment to see full logs
  • Look for the first red error line — that's usually the actual problem
  • Share that line for a specific fix

**Works locally but fails on Vercel:** Almost always an environment variable issue. Compare your `.env.local` file with what you've added in Vercel's dashboard.

Redeploying after changes

Every time you push to GitHub, Vercel automatically rebuilds and deploys. You don't need to do anything manually after the first setup.

To trigger a manual redeploy:

  • Go to Vercel → your project → Deployments
  • Click the three dots on the latest deployment → Redeploy

What to ask if unclear

  • Is your project already on GitHub?
  • Do you have a custom domain or are you using the free Vercel URL?
  • What error are you seeing in the build logs?
Read more
Ships withdesign-with-claude

dwic (design with claude) puts a product designer inside Claude Code. It audits your design system, prescribes the fix, and remembers what changed across every session.

Get the whole plugin

Other commands on design-with-claude.