| name | vercel-local-dev-loop |
| description | Configure Vercel local development with vercel dev, environment variables, and hot reload.
Use when setting up a development environment, testing serverless functions locally,
or establishing a fast iteration cycle with Vercel.
Trigger with phrases like "vercel dev setup", "vercel local development",
"vercel dev environment", "develop with vercel locally".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(npm:*), Bash(npx:*), Grep |
| version | 1.18.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","vercel","development","testing","workflow"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Vercel Local Dev Loop
Overview
Run Vercel serverless functions and API routes locally using vercel dev. Covers environment variable management, hot reload, local testing patterns, and framework-specific dev servers.
Prerequisites
- Completed
vercel-install-auth setup
- Project linked via
vercel link
- Node.js 18+ with npm/pnpm
Instructions
Step 1: Pull Environment Variables
vercel env pull .env.development.local
Step 2: Start Local Dev Server
vercel dev
vercel dev --listen 8080
vercel dev --debug
vercel dev provides:
- Serverless function emulation at
/api/* routes
- Automatic TypeScript compilation
vercel.json rewrites, redirects, and headers applied locally
- Environment variables loaded from
.env*.local files
- Framework detection (Next.js, Nuxt, SvelteKit, etc.)
Step 3: Test Serverless Functions Locally
curl http://localhost:3000/api/hello
curl -X POST http://localhost:3000/api/users \
-H "Content-Type: application/json" \
-d '{"name":"test","email":"test@example.com"}'
curl