vercel-deployment
Vercel deployment configuration, preview environments, and edge functions. Covers vercel.json and vercel.ts configuration, rewrites, redirects, headers, environment variables across production/preview/development, custom domains, DNS setup, edge and serverless functions, Vercel CLI, GitHub Actions CI/CD, and monorepo deployments. Use when deploying to Vercel, configuring builds, setting up preview branches, managing environment variables, configuring custom domains, or using edge/serverless functions. Use for vercel, deploy, preview, edge-function, serverless, vercel-json, environment-variables, domains, monorepo.
What this skill does
# Vercel Deployment ## Overview Vercel is a cloud platform for deploying frontend frameworks and serverless functions with automatic CI/CD, preview deployments, and edge infrastructure. Projects are configured via `vercel.json` (or programmatic `vercel.ts`), the Vercel dashboard, or the Vercel CLI. **When to use:** Static sites, SSR frameworks (Next.js, SvelteKit, Nuxt), serverless API routes, edge functions, preview environments per pull request, monorepo deployments. **When NOT to use:** Long-running backend processes (use containers), WebSocket servers (use dedicated infrastructure), heavy compute workloads (use cloud VMs), applications requiring persistent file system access. ## Quick Reference | Pattern | Tool / API | Key Points | | -------------------- | ------------------------------------ | -------------------------------------------------- | | Project config | `vercel.json` or `vercel.ts` | Root of project, controls builds/routing/functions | | Rewrites | `rewrites` array | Routes request to destination, URL unchanged | | Redirects | `redirects` array | Changes URL, `permanent: true` for 301 | | Headers | `headers` array | Custom response headers per path pattern | | Clean URLs | `cleanUrls: true` | Strips `.html` extensions | | Trailing slash | `trailingSlash: false` | Consistent URL format | | Environment vars | Dashboard or `vercel env` | Scoped to production, preview, development | | Custom domains | Project Settings > Domains | A record for apex, CNAME for subdomains | | Preview deploys | Automatic per PR | Each push gets unique URL | | Edge functions | `export const runtime = 'edge'` | V8 isolates, low latency, limited Node.js APIs | | Serverless functions | `api/` directory or framework routes | Node.js runtime, full API access | | Deploy via CLI | `vercel` or `vercel --prod` | Preview by default, `--prod` for production | | Promote deploy | `vercel promote <url>` | Promote existing preview to production | | Monorepo | Root directory setting per project | One repo, multiple Vercel projects | | GitHub integration | Automatic on push | Zero-config CI/CD with preview per branch | | Programmatic config | `vercel.ts` with `@vercel/config` | Typed, dynamic configuration alternative | | Fluid compute | Enabled by default for new projects | Multi-request workers, 300s default duration | | Rolling releases | Incremental rollout with monitoring | Gradual traffic shift with auto-rollback triggers | | Firewall rules | `vercel.json` WAF configuration | Block threats via dashboard, API, or config file | ## Common Mistakes | Mistake | Correct Pattern | | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------ | | Using `.env.production` for preview-specific values | Use Vercel environment variables scoped to preview environment | | Expecting `VERCEL_URL` to include protocol | Prepend `https://` manually; use `VERCEL_PROJECT_PRODUCTION_URL` for stable production URL | | Adding only apex domain without `www` | Add both `yourdomain.com` and `www.yourdomain.com` to avoid 404 on one | | Using Node.js APIs in edge functions | Edge runtime uses V8 only; `fs`, `path`, `process` are unavailable | | Exceeding 1024 static redirects | Use `bulkRedirects` property for large redirect sets (CSV/JSON/JSONL) | | Creating QueryClient or fetching in edge without streaming | Use streaming responses for long operations in edge functions | | Setting `maxDuration` above plan limit | Fluid compute default: 300s; Hobby: 60s, Pro: 300s, Enterprise: 900s max | | Conflicting DNS records for custom domain | Remove duplicate A records; keep only the Vercel-pointing record | | Not awaiting build in CI before deploy | Use `vercel build` then `vercel deploy --prebuilt` for reliable CI deploys | | Ignoring monorepo root directory setting | Set root directory per project in Vercel dashboard for correct builds | ## Delegation - **Infrastructure review**: Use `Task` agent to audit deployment configuration - **Environment debugging**: Use `Explore` agent to trace environment variable issues - **CI/CD pipeline review**: Use `code-reviewer` agent for GitHub Actions workflow review ## References - [Configuration: vercel.json, builds, rewrites, redirects, headers](references/configuration.md) - [Environment variables and custom domains](references/environment-and-domains.md) - [Edge and serverless functions](references/edge-and-serverless.md) - [CLI commands and CI/CD integration](references/cli-and-ci.md)
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.