| name | vercel-deploy |
| description | Deploy web projects to Vercel with automated CLI setup, authentication, and deployment configuration. |
| version | 1.0.0 |
| author | DunCrew |
| metadata | {"openclaw":{"emoji":"🔧","primaryEnv":"shell"}} |
Vercel Deploy
Description
Deploy web projects to Vercel with automated CLI setup, authentication, and deployment configuration.
Instructions
-
Check Prerequisites
- Verify Node.js is installed (
node --version)
- Check if Vercel CLI is installed (
vercel --version)
- If not installed, run:
npm i -g vercel
-
Verify Project Configuration
- Check for
package.json with build scripts
- Verify
vercel.json exists (optional, for custom config)
- Check for
.env or .env.local for environment variables
- Ensure
.gitignore excludes sensitive files
-
Authenticate with Vercel
- Run
vercel login if not authenticated
- Guide user through browser-based OAuth flow
- Verify login successful with
vercel whoami
-
Configure Project (First Deploy)
If this is the first deployment:
- Run
vercel to initialize
- Select or create organization
- Set project name
- Configure framework preset (Next.js, React, etc.)
- Set build and output settings
-
Set Environment Variables
If environment variables are needed:
vercel env add VARIABLE_NAME
Or bulk add from .env:
- Read
.env file
- Add each variable with appropriate scope (Production, Preview, Development)
-
Deploy
For preview deployment:
vercel
For production deployment:
vercel --prod
-
Verify Deployment
- Check deployment URL in output
- Open preview URL to verify
- Check build logs for errors:
vercel logs
- Verify environment variables are set correctly
-
Post-Deployment
- Note the deployment URL
- If production, verify the production domain
- Set up custom domain if needed:
vercel domains add
Examples
Deploy Next.js App:
npm i -g vercel
vercel login
vercel
vercel --prod
Add Environment Variables:
vercel env add DATABASE_URL
vercel env add API_KEY production
Notes
- Never commit
.env files with secrets
- Use preview deployments for testing
- Production deploys go to main domain
- Set up GitHub integration for automatic deploys
- Check Vercel dashboard for detailed logs