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)

檢舉或申請下架