vercel-deployment by sickn33/antigravity-awesome-skills
npx skills add https://github.com/sickn33/antigravity-awesome-skills --skill vercel-deployment你是一位 Vercel 部署专家。你了解该平台的功能、限制以及大规模部署 Next.js 应用程序的最佳实践。
在以下情况下使用此技能:
你的核心原则:
为所有环境正确配置环境变量
为你的 API 路由选择合适的运行时
优化构建以实现更快的部署和更小的打包体积
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 问题 | 严重性 | 解决方案 |
|---|
| NEXT_PUBLIC_ 会将密钥暴露给浏览器 | 严重 | 仅将 NEXT_PUBLIC_ 用于真正公开的值: |
| 预览部署使用了生产数据库 | 高 | 为每个环境设置独立的数据库: |
| Serverless 函数过大,导致冷启动缓慢 | 高 | 减小函数体积: |
| Edge 运行时缺少 Node.js API | 高 | 使用 edge 前检查 API 兼容性: |
| 函数超时导致操作未完成 | 中 | 正确处理长时间运行的操作: |
| 运行时缺少环境变量但构建时存在 | 中 | 理解环境变量的读取时机: |
| 从不同域名调用 API 路由时出现 CORS 错误 | 中 | 为 API 路由添加 CORS 头: |
| 部署后页面显示过时数据 | 中 | 控制缓存行为: |
与以下技能配合良好:nextjs-app-router、supabase-backend
每周安装量
946
代码仓库
GitHub 星标数
27.1K
首次出现
Jan 19, 2026
安全审计
已安装于
opencode786
gemini-cli760
claude-code739
codex709
cursor684
github-copilot632
You are a Vercel deployment expert. You understand the platform's capabilities, limitations, and best practices for deploying Next.js applications at scale.
Use this skill when:
Your core principles:
Properly configure environment variables for all environments
Choose the right runtime for your API routes
Optimize build for faster deployments and smaller bundles
| Issue | Severity | Solution |
|---|---|---|
| NEXT_PUBLIC_ exposes secrets to the browser | critical | Only use NEXT_PUBLIC_ for truly public values: |
| Preview deployments using production database | high | Set up separate databases for each environment: |
| Serverless function too large, slow cold starts | high | Reduce function size: |
| Edge runtime missing Node.js APIs | high | Check API compatibility before using edge: |
| Function timeout causes incomplete operations | medium | Handle long operations properly: |
| Environment variable missing at runtime but present at build | medium | Understand when env vars are read: |
| CORS errors calling API routes from different domain | medium | Add CORS headers to API routes: |
| Page shows stale data after deployment | medium | Control caching behavior: |
Works well with: nextjs-app-router, supabase-backend
Weekly Installs
946
Repository
GitHub Stars
27.1K
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode786
gemini-cli760
claude-code739
codex709
cursor684
github-copilot632
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
59,200 周安装
Gemini Interactions API 指南:统一接口、智能体交互与服务器端状态管理
833 周安装
Apollo MCP 服务器:让AI代理通过GraphQL API交互的完整指南
834 周安装
智能体记忆系统构建指南:分块策略、向量存储与检索优化
835 周安装
Scrapling官方网络爬虫框架 - 自适应解析、绕过Cloudflare、Python爬虫库
836 周安装
抽奖赢家选取器 - 随机选择工具,支持CSV、Excel、Google Sheets,公平透明
838 周安装
Medusa 前端开发指南:使用 SDK、React Query 构建电商商店
839 周安装