# Vercel Next Deploy

> Deploy and manage this Next.js app on Vercel (project linking, env vars, preview/prod, domains). Use when the user mentions Vercel, deployment, environment variables, previews, or domains. Use when this capability is needed.

- Skill: `tomevault-io/vercel-next-deploy` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/vercel-next-deploy`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/vercel-next-deploy/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/vercel-next-deploy

---


# Vercel deploy (Next.js)

## Quick checklist (before deploying)

- `npm run lint`
- `npm run build`
- No secrets committed (env vars belong in Vercel and `.env.local`)

## Deploy via Vercel dashboard (recommended)

1. Import the repo in Vercel.
2. Framework preset: **Next.js** (auto-detected).
3. Install command: `npm install` (default).
4. Build command: `npm run build` (default).
5. Output: leave default (Next.js uses `.next`).
6. Add environment variables:
   - Vercel → Project → Settings → Environment Variables
   - Set values per environment (Development / Preview / Production)

## Deploy via CLI (optional)

- First deploy: `npx vercel`
- Promote to production: `npx vercel --prod`

## Common fixes

- If builds fail due to missing env vars, add them in Vercel settings and redeploy.
- Don’t add `vercel.json` unless you need custom rewrites/headers/cron jobs.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/terrorproforma) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

