BlogsVercelAgent Content Negotiation

Agent Content Negotiation

Agent Content Negotiation

1
posts
2026

Vercel has implemented content negotiation to serve agent-friendly markdown versions of pages, significantly reducing payload size and improving agent efficiency. This includes updating pages like the blog and changelog, and generating markdown sitemaps for agent discovery. The implementation in Next.js involves rewrite rules and route handlers to serve markdown content, and the use of `link rel="alternate"` tags for fallback discovery.

2026

Making agent-friendly pages with content negotiation

2/3/2026

Introduced content negotiation for agent-friendly pages by implementing `Accept` header handling in Next.js. This involves rewrite rules in `next.config.ts` to route `text/markdown` requests to dedicated route handlers (`app/blog/md/[...slug]/route.ts`) that convert CMS rich text to markdown. Also added markdown sitemap generation (`app/blog/sitemap.md/route.ts`, `app/docs/sitemap.md/route.ts`) for agent discovery and described the use of `link rel="alternate"` tags.