home / skills / bobmatnyc / claude-mpm-skills / vercel-networking-domains

This skill helps you configure Vercel domains, redirects, headers, CDN, and regions to optimize routing and edge delivery.

npx playbooks add skill bobmatnyc/claude-mpm-skills --skill vercel-networking-domains

Review the files below or copy the command above to add this skill to your agents.

Files (2)
SKILL.md
2.5 KB
---
name: vercel-networking-domains
description: Vercel networking and routing for domains, DNS, redirects, rewrites, headers, CDN, edge cache, and regions. Use when configuring routing or traffic behavior on Vercel.
progressive_disclosure:
  entry_point:
    summary: "Vercel networking and routing for domains, DNS, redirects, rewrites, headers, CDN, edge cache, and regions. Use when configuring routing or traffic behavior on Vercel."
    when_to_use: "When working with vercel-networking-domains or related functionality."
    quick_start: "1. Review the core concepts below. 2. Apply patterns to your use case. 3. Follow best practices for implementation."
---
# Vercel Networking and Domains Skill

---
progressive_disclosure:
  entry_point:
    summary: "Vercel networking: domains, routing rules, headers, CDN, edge cache, and region configuration."
    when_to_use:
      - "When configuring domains and DNS"
      - "When managing redirects, rewrites, or headers"
      - "When tuning CDN and edge cache behavior"
    quick_start:
      - "Add and verify domains"
      - "Configure redirects and rewrites"
      - "Set headers and caching"
      - "Select deployment regions"
  token_estimate:
    entry: 90-110
    full: 3800-4800
---

## Overview

Vercel networking covers domain configuration, routing rules, and edge delivery behavior through the CDN and edge cache.

## Domains and DNS

- Add domains and verify ownership.
- Configure DNS records for routing.

## Routing Rules

- Define redirects and rewrites for URL behavior.
- Apply custom headers and compression.

## CDN and Edge Cache

- Use CDN distribution for global delivery.
- Purge or invalidate edge cache when needed.

## Regions

- Select regions for deployment and execution.

## Complementary Skills

When using this skill, consider these related skills (if deployed):

- **vercel-functions-runtime**: Function routing and edge execution.
- **vercel-deployments-builds**: Deployment workflow and releases.
- **vercel-observability**: Traffic analytics and performance metrics.

*Note: Complementary skills are optional. This skill is fully functional without them.*

## Resources

**Vercel Docs**:
- Domains: https://vercel.com/docs/domains
- Headers: https://vercel.com/docs/headers
- Redirects: https://vercel.com/docs/redirects
- Rewrites: https://vercel.com/docs/rewrites
- CDN: https://vercel.com/docs/cdn
- Edge Cache: https://vercel.com/docs/edge-cache
- Regions: https://vercel.com/docs/regions
- Compression: https://vercel.com/docs/compression

Overview

This skill covers Vercel networking and routing for domains, DNS, redirects, rewrites, headers, CDN, edge cache, and regions. It helps you configure domain ownership, routing rules, caching behavior, and regional execution to optimize traffic delivery and control. It is intended for teams managing production routing and global performance on Vercel.

How this skill works

The skill inspects and guides configuration of Vercel domain settings and DNS records, and it helps you author routing rules such as redirects and rewrites. It also guides the application of custom headers, compression, and cache controls for the CDN and edge cache. Finally, it assists in selecting deployment regions and purge strategies to align execution and cache behavior with traffic patterns.

When to use it

  • When adding or verifying domains and configuring DNS records
  • When implementing redirects, rewrites, or custom request/response headers
  • When tuning CDN and edge cache TTLs, cache keys, or purge policies
  • When optimizing regional execution and selecting deployment regions
  • When troubleshooting unexpected routing or cache behavior

Best practices

  • Verify domain ownership and point authoritative DNS to Vercel for predictable routing
  • Prefer rewrites for internal routing and redirects for observable URL changes (use proper status codes)
  • Set explicit Cache-Control and Edge-Cache headers to avoid stale content and enable safe purges
  • Use region selection for latency-sensitive functions and stateless edge logic; avoid coupling state to region-specific execution
  • Test routing rules and header changes on a staging alias before promoting to production
  • Document DNS changes and maintain rollback steps when modifying authoritative records or global redirects

Example use cases

  • Add a new custom domain, create required DNS records, and verify ownership
  • Create a set of redirects from legacy paths to new SEO-friendly URLs with 301 status codes
  • Rewrite requests for clean internal routing while keeping public URLs unchanged
  • Set Cache-Control and Edge-Cache headers to extend CDN TTLs and configure on-demand purge workflows
  • Limit an edge function or deployment to specific regions to reduce cold-start latency for target users

FAQ

How do I invalidate cached content at the edge?

Use Vercel’s edge-cache purge API or the dashboard purge action and ensure your Cache-Control/Edge-Cache headers are configured to allow invalidation.

When should I use rewrites vs redirects?

Use rewrites to map incoming URLs to internal paths without changing the visible URL. Use redirects when the browser or search engine should be sent to a different URL (use 301 for permanent moves, 302/307 for temporary).