Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)33k · #8809

vercel-deploy

Skill này làm gì

Skill này đưa ứng dụng hoặc website của bạn lên Vercel và cung cấp liên kết để xem. Nó dành cho người muốn một cách nhanh để đưa dự án lên mạng.

Khi nào nên dùng

  • ✓Khi bạn yêu cầu agent triển khai ứng dụng và gửi liên kết cho bạn.
  • ✓Khi bạn muốn một phiên bản xem trước của website để kiểm tra trước khi ra mắt.
  • ✓Khi bạn yêu cầu rõ ràng một bản phát hành production của dự án.

Liên kết skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/vercel-deploy/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/vercel-deploy/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy triển khai dự án của tôi lên Vercel và gửi liên kết cho tôi để kiểm tra.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent chạy lệnh Vercel hoặc một script dự phòng để đóng gói dự án, chờ quá trình build, rồi trả về liên kết xem trước. Nó chỉ triển khai lên production khi bạn yêu cầu rõ ràng.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Vercel Deploy

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

Prerequisites

  • When sandboxing blocks the deployment network calls, rerun with sandbox_permissions=require_escalated.
  • The deployment might take a few minutes. Use appropriate timeout values.

Quick Start

Just run this (with a 10 minute timeout):

vercel deploy [path] -y

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

If that fails with "No existing credentials found", use the fallback method below.

Fallback (No Auth)

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

# Deploy current directory
bash scripts/deploy.sh

# Deploy specific project
bash scripts/deploy.sh /path/to/project

# Deploy existing tarball
bash 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:

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 deploy with escalated permissions (use sandbox_permissions=require_escalated). 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?
Câu hỏi thường gặp

Nó có triển khai lên website đang hoạt động của tôi mặc định không?

Không. Nó tạo một bản triển khai xem trước trừ khi bạn yêu cầu rõ ràng là production.

Nếu tôi chưa đăng nhập Vercel thì sao?

Skill có một script dự phòng triển khai mà không cần tài khoản của bạn và trả về liên kết để bạn nhận quyền sau.

Triển khai mất bao lâu?

Skill cho biết triển khai có thể mất vài phút, vì quá trình build có thể chạy khá lâu.

Chi tiết

Mô tả gốc của tác giả

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".

repo: davila7/claude-code-templates

Độ phổ biến

Sao GitHub
33k
Vị trí xếp hạng
#8809
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự