Vercel Deploy

openai/skills/skills/.curated/vercel-deploy

作者 openai49f948faa925无许可证28K 个星标收录于 2026年11月20日更新于 2026年11月20日仓库3周前更新

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

精选包含脚本DevOps 与云端
AI 生成的概览

将应用和网站部署到 Vercel,默认创建预览部署并返回部署链接。

功能
先检查是否安装了 Vercel CLI,然后对指定项目路径执行预览部署,并为构建过程设置较长超时。若 CLI 未安装或缺少凭据,则改用随附的 shell 脚本作为后备方案,该脚本会检测框架、打包项目并完成部署,返回包含 previewUrl 和 claimUrl 的 JSON。只有在用户明确要求时才进行生产部署,最终向用户展示部署链接而不做访问验证。
适用场景
当用户要求部署应用或网站、把项目上线,或在 Vercel 上创建预览部署时使用。
运行要求
主要路径需要已安装并完成认证的 Vercel CLI(vercel);否则使用随附的 scripts/deploy.sh 后备脚本。需要访问 Vercel 的网络连接(可能需提升沙箱权限),并设置较长的命令超时。

Vercel Deploy

Deploy any project to Vercel instantly. Always deploy as preview (not production) unless the user explicitly asks for production.

Prerequisites

  • Check whether the Vercel CLI is installed without escalated permissions (for example, command -v vercel).
  • Only escalate the actual deploy command if sandboxing blocks the deployment network calls (sandbox_permissions=require_escalated).
  • The deployment might take a few minutes. Use appropriate timeout values.

Quick Start

  1. Check whether the Vercel CLI is installed (no escalation for this check):
bash
command -v vercel
  1. If vercel is installed, run this (with a 10 minute timeout):
bash
vercel deploy [path] -y

Important: Use a 10 minute (600000ms) timeout for the deploy command since builds can take a while.

  1. If vercel is not installed, or if the CLI fails with "No existing credentials found", use the fallback method below.

Fallback (No Auth)

If CLI fails with auth error, use the deploy script:

bash
skill_dir="<path-to-skill>"
# Deploy current directorybash "$skill_dir/scripts/deploy.sh"
# Deploy specific projectbash "$skill_dir/scripts/deploy.sh" /path/to/project
# Deploy existing tarballbash "$skill_dir/scripts/deploy.sh" /path/to/project.tgz

The script handles framework detection, packaging, and deployment. It waits for the build to complete and returns JSON with previewUrl and claimUrl.

Tell the user: "Your deployment is ready at [previewUrl]. Claim it at [claimUrl] to manage your deployment."

Production Deploys

Only if user explicitly asks:

bash
vercel deploy [path] --prod -y

Output

Show the user the deployment URL. For fallback deployments, also show the claim URL.

Do not curl or fetch the deployed URL to verify it works. Just return the link.

Troubleshooting

Escalated Network Access

If deployment fails due to network issues (timeouts, DNS errors, connection resets), rerun the actual deploy command with escalated permissions (use sandbox_permissions=require_escalated). Do not escalate the command -v vercel installation check. The deploy requires escalated network access when sandbox networking blocks outbound requests.

Example guidance to the user:

The deploy needs escalated network access to deploy to Vercel. I can rerun the command with escalated permissions—want me to proceed?

来源与署名

来源:openai/skills位于skills/.curated/vercel-deploy提交49f948f

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

在 README 中添加徽章

向读者展示该技能已收录于 SourceWeft,徽章链接到本页。

“Listed on SourceWeft”徽章预览
[![Listed on SourceWeft](https://sourceweft.com/badge/skills/gh-openai-skills-vercel-deploy.svg)](https://sourceweft.com/skills/gh-openai-skills-vercel-deploy?utm_source=readme&utm_medium=badge)

举报或申请下架