From openhands-skills
Guides Vercel deployments, preview protection bypass for agent access, environment variables setup, and CLI commands. Use for Vercel-hosted projects with protected previews.
npx claudepluginhub openhands/extensionsThis skill uses the workspace's default tool permissions.
Vercel deployments may have **Deployment Protection** enabled, which requires authentication to access preview deployments. This can block automated testing and agent access to preview URLs.
Provides Vercel CLI expert guidance for deploying projects, managing environment variables, linking projects/repos, viewing logs, managing domains, and command-line Vercel interactions.
Deploys projects to Vercel via CLI or git push. Checks linking/auth/teams, creates preview links, guides to git integration for ongoing deploys.
Implements typed TypeScript fetch wrappers for Vercel REST API with auth, pagination, error handling, and methods for projects/deployments. Use for programmatic integrations or deployment tools.
Share bugs, ideas, or general feedback.
Vercel deployments may have Deployment Protection enabled, which requires authentication to access preview deployments. This can block automated testing and agent access to preview URLs.
If you encounter a login page or authentication requirement when accessing a Vercel preview URL, the deployment has protection enabled. Signs include:
vercel.com/login or SSO login pageTo allow agents and automated systems to access protected deployments, users need to set up Protection Bypass for Automation:
Navigate to Project Settings
Generate a Protection Bypass Secret
Using the Bypass Secret
The secret can be used in two ways:
As a Header:
curl -H "x-vercel-protection-bypass: <secret>" https://your-preview-url.vercel.app
As a Query Parameter:
https://your-preview-url.vercel.app?x-vercel-protection-bypass=<secret>
For Browser-Based Testing
?x-vercel-protection-bypass=<secret> to the preview URLIf protection bypass is not suitable, users can disable protection for preview deployments:
Do NOT repeatedly attempt to access protected URLs without the bypass secret.
Set environment variables in Vercel Dashboard under Settings → Environment Variables, or use the Vercel CLI:
vercel env add MY_SECRET
Access in your application:
const secret = process.env.MY_SECRET;
Common Vercel CLI commands:
# Login to Vercel
vercel login
# Deploy to preview
vercel
# Deploy to production
vercel --prod
# List deployments
vercel ls
# View deployment logs
vercel logs <deployment-url>
# Pull environment variables locally
vercel env pull