vercel-deployment

korallis 的头像作者 korallis

36. 在Vercel上部署和优化应用程序,包括预览部署、边缘函数、环境变量和性能监控。用于部署Next.js应用程序、为每个拉取请求设置预览部署、配置环境变量、使用Vercel边缘函数、优化构建性能、实施重定向和重写、配置自定义域名或使用Vercel Analytics监控应用程序性能时使用。

📖 中文导读:36. 在Vercel上部署和优化应用程序,包括预览部署、边缘函数、环境变量和性能监控。用于部署Next.js应用程序、为每个拉取请求设置预览部署、配置环境变量、使用Vercel边缘函数、优化构建性能、实施重定向和重写、配置自定义域名或使用Vercel Analytics监控应用程序性能时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: vercel-deployment description: Deploy and optimize applications on Vercel with preview deployments, edge functions, environment variables, and performance monitoring. Use when deploying Next.js applications, setting up preview deployments per pull request, configuring environment variables, using Vercel Edge Functions, optimizing build performance, implementing redirects and rewrites, configuring custom domains, or monitoring application performance with Vercel Analytics.

Vercel Deployment - Production Deployments

When to use this skill

  • Deploying Next.js applications to Vercel
  • Setting up automatic preview deployments
  • Configuring environment variables per environment
  • Using Vercel Edge Functions at the edge
  • Optimizing build times and caching
  • Implementing redirects, rewrites, and headers
  • Configuring custom domains and SSL
  • Monitoring performance with Vercel Analytics
  • Implementing incremental static regeneration
  • Setting up monorepo deployments with Turborepo
  • Configuring serverless function regions
  • Using Vercel KV, Postgres, or Blob storage

When to use this skill

  • Deploying Next.js apps, configuring edge functions, analytics.
  • When working on related tasks or features
  • During development that requires this expertise

Use when: Deploying Next.js apps, configuring edge functions, analytics.

Deploy

```bash vercel --prod ```

Resources