用途:在用户提出部署需求(如“部署我的应用”“部署到生产环境”)时,将项目或网站部署到 Vercel。官方说明称无需认证即可完成部署。
主要能力:把项目打包为 tarball(排除 node_modules 和 .git);从 package.json 自动检测框架;上传到部署服务;返回 Preview URL(在线站点)和 Claim URL(可将部署转移至自己的 Vercel 账户)。支持检测的框架包括 React 系(Next.js、Gatsby、Create React App、Remix、React Router)、Vue 系(Nuxt、Vitepress、Vuepress、Gridsome)、Svelte 系(SvelteKit、Svelte、Sapper)、其他前端(Astro、Solid Start、Angular、Ember、Preact、Docusaurus)、后端(Express、Hono、Fastify、NestJS、Elysia、h3、Nitro)、构建工具(Vite、Parcel)以及 Blitz、Hydrogen、RedwoodJS、Storybook、Sanity 等;无 package.json 的静态 HTML 项目框架为 null。
使用方式:运行脚本 bash /mnt/skills/user/vercel-deploy/scripts/deploy.sh [path]。path 为要部署的目录或 .tgz 文件,默认当前目录。也可部署已存在的 tarball:bash /mnt/skills/user/vercel-deploy/scripts/deploy.sh /path/to/project.tgz。脚本同时向 stdout 输出 JSON,包含 previewUrl、claimUrl、deploymentId、projectId,便于程序化调用。静态 HTML 项目若只有一个非 index.html 的 .html 文件,会自动重命名以便根路径访问。结果需同时展示 Preview URL 与 Claim URL。
限制与注意:若因网络限制(claude.ai 上较常见)部署失败,官方建议在 https://claude.ai/admin-settings/capabilities 允许 *.vercel.com 域名后重试。除上述内容外,其他收费、配额、平台细节暂未提供。