Vercel deploy

From elophanto/EloPhanto · View interactive version

Vercel deploy is an AI agent skill from the GitHub repository elophanto/EloPhanto. Deploy applications and websites to Vercel. Handles project linking, environment

How to use this skill

Skill file

Deploy to Vercel

Description

Deploy applications and websites to Vercel. Handles project linking, environment

variables, preview vs production deploys, and framework auto-detection.

Triggers

Instructions

When to Use Vercel

Vercel is the right choice for:

Do NOT use Vercel if any API route calls an LLM, does heavy processing,

streams data, or uses WebSockets — these will hit the **10-second serverless

function timeout** on free tier (60s on Pro). Use Railway instead.

Deploy Workflow

  1. Build locally first — always run npm run build before deploying.

Fix all build errors locally. Deploying broken code wastes time.

  1. Create database if needed — if the project needs persistence, call

create_database with a project name. It returns url, anon_key,

service_role_key, and db_url automatically. **Never ask the user for

Supabase keys** — they are auto-generated.

  1. Deploy using the deploy_website tool:

```

deploy_website(

project_path="/path/to/project",

provider="vercel",

name="my-project", # optional

env_vars={ # from create_database result

"NEXT_PUBLIC_SUPABASE_URL": url,

"NEXT_PUBLIC_SUPABASE_ANON_KEY": anon_key,

"SUPABASE_SERVICE_ROLE_KEY": service_role_key,

"DATABASE_URL": db_url

},

production=true # false for preview deploy

)

```

  1. Verify — check the returned URL in the browser.

Token Setup

The deploy_website tool reads the Vercel token from the vault automatically.

If not set, it will tell the user what to do:

vault_set key=vercel_token value=YOUR_TOKEN

Get the token at: vercel.com → Settings → Tokens → Create Token (scope: full account).

The Vercel CLI must be installed: npm install -g vercel

How It Works Under the Hood

The deploy_website tool runs:

# Set each env var
printf "%s" "$VALUE" | vercel env add KEY production --token $TOKEN --yes

# Deploy
vercel --yes --token $TOKEN --prod [--name project-name]

It returns the deployment URL from the CLI output.

Preview vs Production

Framework Auto-Detection

Vercel auto-detects 40+ frameworks from package.json:

Angular, Vue CLI, Eleventy, Hugo, Jekyll, and more.

No framework configuration needed — just deploy.

Vercel Free Tier Limits

Anti-Patterns

before burning deploy minutes.

them into Vercel's environment.

returns them automatically.

Verify

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.