[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-routing-middleware":3,"mdc--gu0x3y-key":39,"related-repo-openai-routing-middleware":3482,"related-org-openai-routing-middleware":3602},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":28,"repoUrl":29,"updatedAt":30,"license":31,"forks":32,"topics":33,"repo":34,"sourceUrl":37,"mdContent":38},"routing-middleware","configure Vercel routing middleware","Vercel Routing Middleware guidance — request interception before cache, rewrites, redirects, personalization. Works with any framework. Supports Edge, Node.js, and Bun runtimes. Use when intercepting requests at the platform level.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16,19,22,25],{"name":13,"slug":14,"type":15},"Vercel","vercel","tag",{"name":17,"slug":18,"type":15},"Node.js","node-js",{"name":20,"slug":21,"type":15},"Deployment","deployment",{"name":23,"slug":24,"type":15},"Edge Functions","edge-functions",{"name":26,"slug":27,"type":15},"Frontend","frontend",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-04-06T18:40:53.331752",null,465,[],{"repoUrl":29,"stars":28,"forks":32,"topics":35,"description":36},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Fvercel\u002Fskills\u002Frouting-middleware","---\nname: routing-middleware\ndescription: Vercel Routing Middleware guidance — request interception before cache, rewrites, redirects, personalization. Works with any framework. Supports Edge, Node.js, and Bun runtimes. Use when intercepting requests at the platform level.\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Frouting\u002Fmiddleware\"\n    - \"https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\"\n  sitemap: \"https:\u002F\u002Fnextjs.org\u002Fsitemap.xml\"\n  pathPatterns: \n    - 'middleware.ts'\n    - 'middleware.js'\n    - 'middleware.mts'\n    - 'middleware.mjs'\n    - 'proxy.ts'\n    - 'proxy.js'\n    - 'proxy.mts'\n    - 'proxy.mjs'\n    - 'src\u002Fmiddleware.ts'\n    - 'src\u002Fmiddleware.js'\n    - 'src\u002Fmiddleware.mts'\n    - 'src\u002Fmiddleware.mjs'\n    - 'src\u002Fproxy.ts'\n    - 'src\u002Fproxy.js'\n    - 'src\u002Fproxy.mts'\n    - 'src\u002Fproxy.mjs'\n    - 'vercel.json'\n    - 'apps\u002F*\u002Fvercel.json'\n    - 'vercel.ts'\n    - 'vercel.mts'\n  bashPatterns:\n    - '\\bnpx\\s+@vercel\u002Fconfig\\b'\n---\n\n# Vercel Routing Middleware\n\nYou are an expert in Vercel Routing Middleware — the platform-level request interception layer.\n\n## What It Is\n\nRouting Middleware runs **before the cache** on every request matching its config. It is a **Vercel platform** feature (not framework-specific) that works with Next.js, SvelteKit, Astro, Nuxt, or any deployed framework. Built on Fluid Compute.\n\n- **File**: `middleware.ts` or `middleware.js` at the project root\n- **Default export required** (function name can be anything)\n- **Runtimes**: Edge (default), Node.js (`runtime: 'nodejs'`), Bun (Node.js + `bunVersion` in vercel.json)\n\n## CRITICAL: Middleware Disambiguation\n\nThere are THREE \"middleware\" concepts in the Vercel ecosystem:\n\n| Concept | File | Runtime | Scope | When to Use |\n|---------|------|---------|-------|-------------|\n| **Vercel Routing Middleware** | `middleware.ts` (root) | Edge\u002FNode\u002FBun | Any framework, platform-level | Request interception before cache: rewrites, redirects, geo, A\u002FB |\n| **Next.js 16 Proxy** | `proxy.ts` (root, or `src\u002Fproxy.ts` if using `--src-dir`) | Node.js only | Next.js 16+ only | Network-boundary proxy needing full Node APIs. NOT for auth. |\n| **Edge Functions** | Any function file | V8 isolates | General-purpose | Standalone edge compute endpoints, not an interception layer |\n\n**Why the rename in Next.js 16**: `middleware.ts` → `proxy.ts` clarifies it sits at the network boundary (not general-purpose middleware). Partly motivated by CVE-2025-29927 (middleware auth bypass via `x-middleware-subrequest` header). The exported function must also be renamed from `middleware` to `proxy`. Migration codemod: `npx @next\u002Fcodemod@latest middleware-to-proxy`\n\n**Deprecation**: Next.js 16 still accepts `middleware.ts` but treats it as deprecated and logs a warning. It will be removed in a future version.\n\n## Bun Runtime\n\nTo run Routing Middleware (and all Vercel Functions) on Bun, add `bunVersion` to `vercel.json`:\n\n```json\n{\n  \"bunVersion\": \"1.x\"\n}\n```\n\nSet the middleware runtime to `nodejs` — Bun replaces the Node.js runtime transparently:\n\n```ts\nexport const config = {\n  runtime: 'nodejs', \u002F\u002F Bun swaps in when bunVersion is set\n};\n```\n\nBun reduces average latency by ~28% in CPU-bound workloads. Currently in Public Beta — supports Next.js, Express, Hono, and Nitro.\n\n## Basic Example\n\n```ts\n\u002F\u002F middleware.ts (project root)\nimport { geolocation, rewrite } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request) {\n  const { country } = geolocation(request);\n  const url = new URL(request.url);\n  url.pathname = country === 'US' ? '\u002Fus' + url.pathname : '\u002Fintl' + url.pathname;\n  return rewrite(url);\n}\n\nexport const config = {\n  runtime: 'edge', \u002F\u002F 'edge' (default) | 'nodejs'\n};\n```\n\n## Helper Methods (`@vercel\u002Ffunctions`)\n\nFor non-Next.js frameworks, import from `@vercel\u002Ffunctions`:\n\n| Helper | Purpose |\n|--------|---------|\n| `next()` | Continue middleware chain (optionally modify headers) |\n| `rewrite(url)` | Transparently serve content from a different URL |\n| `geolocation(request)` | Get `city`, `country`, `latitude`, `longitude`, `region` |\n| `ipAddress(request)` | Get client IP address |\n| `waitUntil(promise)` | Keep function running after response is sent |\n\nFor Next.js, equivalent helpers are on `NextResponse` (`next()`, `rewrite()`, `redirect()`) and `NextRequest` (`request.geo`, `request.ip`).\n\n## Matcher Configuration\n\nMiddleware runs on **every route** by default. Use `config.matcher` to scope it:\n\n```ts\n\u002F\u002F Single path\nexport const config = { matcher: '\u002Fdashboard\u002F:path*' };\n\n\u002F\u002F Multiple paths\nexport const config = { matcher: ['\u002Fdashboard\u002F:path*', '\u002Fapi\u002F:path*'] };\n\n\u002F\u002F Regex: exclude static files\nexport const config = {\n  matcher: ['\u002F((?!_next\u002Fstatic|favicon.ico).*)'],\n};\n```\n\n**Tip**: Using `matcher` is preferred — unmatched paths skip middleware invocation entirely (saves compute).\n\n## Common Patterns\n\n### IP-Based Header Injection\n\n```ts\nimport { ipAddress, next } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request) {\n  return next({ headers: { 'x-real-ip': ipAddress(request) || 'unknown' } });\n}\n```\n\n### A\u002FB Testing via Edge Config\n\n```ts\nimport { get } from '@vercel\u002Fedge-config';\nimport { rewrite } from '@vercel\u002Ffunctions';\n\nexport default async function middleware(request: Request) {\n  const variant = await get('experiment-homepage'); \u002F\u002F \u003C1ms read\n  const url = new URL(request.url);\n  url.pathname = variant === 'B' ? '\u002Fhome-b' : '\u002Fhome-a';\n  return rewrite(url);\n}\n```\n\n### Background Processing\n\n```ts\nimport type { RequestContext } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request, context: RequestContext) {\n  context.waitUntil(\n    fetch('https:\u002F\u002Fanalytics.example.com\u002Flog', { method: 'POST', body: request.url })\n  );\n  return new Response('OK');\n}\n```\n\n## Request Limits\n\n| Limit | Value |\n|-------|-------|\n| Max URL length | 14 KB |\n| Max request body | 4 MB |\n| Max request headers | 64 headers \u002F 16 KB total |\n\n## Three CDN Routing Mechanisms\n\nVercel's CDN supports three routing mechanisms, evaluated in this order:\n\n| Order | Mechanism | Scope | Deploy Required | How to Configure |\n|-------|-----------|-------|-----------------|------------------|\n| 1 | **Bulk Redirects** | Up to 1M static path→path redirects | No (runtime via Dashboard\u002FAPI\u002FCLI) | Dashboard, CSV upload, REST API |\n| 2 | **Project-Level Routes** | Headers, rewrites, redirects | No (instant publish) | Dashboard, API, CLI, Vercel SDK |\n| 3 | **Deployment Config Routes** | Full routing rules | Yes (deploy) | `vercel.json`, `vercel.ts`, `next.config.ts` |\n\n**Project-level routes** (added March 2026) let you update routing rules — response headers, rewrites to external APIs — without triggering a new deployment. They run after bulk redirects and before deployment config routes. Available on all plans.\n\n### Project-Level Routes — Configuration Methods\n\nProject-level routes take effect instantly (no deploy required). Four ways to manage them:\n\n| Method | How |\n|--------|-----|\n| **Dashboard** | Project → CDN → Routing tab. Live map of global traffic, cache management, and route editor in one view. |\n| **REST API** | `GET\u002FPOST\u002FPATCH\u002FDELETE \u002Fv1\u002Fprojects\u002F{projectId}\u002Froutes` — 8 dedicated endpoints for CRUD on project routes. |\n| **Vercel CLI** | Managed via `vercel.ts` \u002F `@vercel\u002Fconfig` commands (`compile`, `validate`, `generate`). |\n| **Vercel SDK** | `@vercel\u002Fconfig` helpers: `routes.redirect()`, `routes.rewrite()`, `routes.header()`, plus `has`\u002F`missing` conditions and transforms. |\n\nUse project-level routes for operational changes (CORS headers, API proxy rewrites, A\u002FB redirects) that shouldn't require a full redeploy.\n\n## Programmatic Configuration with `vercel.ts`\n\nInstead of static `vercel.json`, you can use `vercel.ts` (or `.js`, `.mjs`, `.cjs`, `.mts`) with the `@vercel\u002Fconfig` package for type-safe, dynamic routing configuration:\n\n```ts\n\u002F\u002F vercel.ts\nimport { defineConfig } from '@vercel\u002Fconfig';\n\nexport default defineConfig({\n  rewrites: [\n    { source: '\u002Fapi\u002F:path*', destination: 'https:\u002F\u002Fbackend.example.com\u002F:path*' },\n  ],\n  headers: [\n    { source: '\u002F(.*)', headers: [{ key: 'X-Frame-Options', value: 'DENY' }] },\n  ],\n});\n```\n\nCLI commands:\n- `npx @vercel\u002Fconfig compile` — compile to JSON (stdout)\n- `npx @vercel\u002Fconfig validate` — validate and show summary\n- `npx @vercel\u002Fconfig generate` — generate `vercel.json` locally for development\n\n**Constraint**: Only one config file per project — `vercel.json` or `vercel.ts`, not both.\n\n## When to Use\n\n- Geo-personalization of static pages (runs before cache)\n- A\u002FB testing rewrites with Edge Config\n- Custom redirects based on request properties\n- Header injection (CSP, CORS, custom headers)\n- Lightweight auth checks (defense-in-depth only — not sole auth layer)\n- Project-level routes for headers\u002Frewrites without redeploying\n\n## When NOT to Use\n\n- Need full Node.js APIs in Next.js → use `proxy.ts`\n- General compute at the edge → use Edge Functions\n- Heavy business logic or database queries → use server-side framework features\n- Auth as sole protection → use Layouts, Server Components, or Route Handlers\n- Thousands of static redirects → use Bulk Redirects (up to 1M per project)\n\n## References\n\n- 📖 docs: https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\n- 📖 API reference: https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\u002Fapi\n- 📖 getting started: https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\u002Fgetting-started\n",{"data":40,"body":70},{"name":4,"description":6,"metadata":41},{"priority":42,"docs":43,"sitemap":46,"pathPatterns":47,"bashPatterns":68},6,[44,45],"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Frouting\u002Fmiddleware","https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware","https:\u002F\u002Fnextjs.org\u002Fsitemap.xml",[48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67],"middleware.ts","middleware.js","middleware.mts","middleware.mjs","proxy.ts","proxy.js","proxy.mts","proxy.mjs","src\u002Fmiddleware.ts","src\u002Fmiddleware.js","src\u002Fmiddleware.mts","src\u002Fmiddleware.mjs","src\u002Fproxy.ts","src\u002Fproxy.js","src\u002Fproxy.mts","src\u002Fproxy.mjs","vercel.json","apps\u002F*\u002Fvercel.json","vercel.ts","vercel.mts",[69],"\\bnpx\\s+@vercel\u002Fconfig\\b",{"type":71,"children":72},"root",[73,82,88,95,115,181,187,192,350,403,420,426,444,515,528,613,618,624,1083,1095,1106,1248,1304,1310,1330,1568,1586,1592,1599,1813,1819,2176,2182,2473,2479,2540,2546,2551,2696,2706,2712,2717,2888,2893,2904,2959,3285,3290,3333,3356,3361,3394,3400,3433,3439,3476],{"type":74,"tag":75,"props":76,"children":78},"element","h1",{"id":77},"vercel-routing-middleware",[79],{"type":80,"value":81},"text","Vercel Routing Middleware",{"type":74,"tag":83,"props":84,"children":85},"p",{},[86],{"type":80,"value":87},"You are an expert in Vercel Routing Middleware — the platform-level request interception layer.",{"type":74,"tag":89,"props":90,"children":92},"h2",{"id":91},"what-it-is",[93],{"type":80,"value":94},"What It Is",{"type":74,"tag":83,"props":96,"children":97},{},[98,100,106,108,113],{"type":80,"value":99},"Routing Middleware runs ",{"type":74,"tag":101,"props":102,"children":103},"strong",{},[104],{"type":80,"value":105},"before the cache",{"type":80,"value":107}," on every request matching its config. It is a ",{"type":74,"tag":101,"props":109,"children":110},{},[111],{"type":80,"value":112},"Vercel platform",{"type":80,"value":114}," feature (not framework-specific) that works with Next.js, SvelteKit, Astro, Nuxt, or any deployed framework. Built on Fluid Compute.",{"type":74,"tag":116,"props":117,"children":118},"ul",{},[119,145,155],{"type":74,"tag":120,"props":121,"children":122},"li",{},[123,128,130,136,138,143],{"type":74,"tag":101,"props":124,"children":125},{},[126],{"type":80,"value":127},"File",{"type":80,"value":129},": ",{"type":74,"tag":131,"props":132,"children":134},"code",{"className":133},[],[135],{"type":80,"value":48},{"type":80,"value":137}," or ",{"type":74,"tag":131,"props":139,"children":141},{"className":140},[],[142],{"type":80,"value":49},{"type":80,"value":144}," at the project root",{"type":74,"tag":120,"props":146,"children":147},{},[148,153],{"type":74,"tag":101,"props":149,"children":150},{},[151],{"type":80,"value":152},"Default export required",{"type":80,"value":154}," (function name can be anything)",{"type":74,"tag":120,"props":156,"children":157},{},[158,163,165,171,173,179],{"type":74,"tag":101,"props":159,"children":160},{},[161],{"type":80,"value":162},"Runtimes",{"type":80,"value":164},": Edge (default), Node.js (",{"type":74,"tag":131,"props":166,"children":168},{"className":167},[],[169],{"type":80,"value":170},"runtime: 'nodejs'",{"type":80,"value":172},"), Bun (Node.js + ",{"type":74,"tag":131,"props":174,"children":176},{"className":175},[],[177],{"type":80,"value":178},"bunVersion",{"type":80,"value":180}," in vercel.json)",{"type":74,"tag":89,"props":182,"children":184},{"id":183},"critical-middleware-disambiguation",[185],{"type":80,"value":186},"CRITICAL: Middleware Disambiguation",{"type":74,"tag":83,"props":188,"children":189},{},[190],{"type":80,"value":191},"There are THREE \"middleware\" concepts in the Vercel ecosystem:",{"type":74,"tag":193,"props":194,"children":195},"table",{},[196,229],{"type":74,"tag":197,"props":198,"children":199},"thead",{},[200],{"type":74,"tag":201,"props":202,"children":203},"tr",{},[204,210,214,219,224],{"type":74,"tag":205,"props":206,"children":207},"th",{},[208],{"type":80,"value":209},"Concept",{"type":74,"tag":205,"props":211,"children":212},{},[213],{"type":80,"value":127},{"type":74,"tag":205,"props":215,"children":216},{},[217],{"type":80,"value":218},"Runtime",{"type":74,"tag":205,"props":220,"children":221},{},[222],{"type":80,"value":223},"Scope",{"type":74,"tag":205,"props":225,"children":226},{},[227],{"type":80,"value":228},"When to Use",{"type":74,"tag":230,"props":231,"children":232},"tbody",{},[233,269,320],{"type":74,"tag":201,"props":234,"children":235},{},[236,244,254,259,264],{"type":74,"tag":237,"props":238,"children":239},"td",{},[240],{"type":74,"tag":101,"props":241,"children":242},{},[243],{"type":80,"value":81},{"type":74,"tag":237,"props":245,"children":246},{},[247,252],{"type":74,"tag":131,"props":248,"children":250},{"className":249},[],[251],{"type":80,"value":48},{"type":80,"value":253}," (root)",{"type":74,"tag":237,"props":255,"children":256},{},[257],{"type":80,"value":258},"Edge\u002FNode\u002FBun",{"type":74,"tag":237,"props":260,"children":261},{},[262],{"type":80,"value":263},"Any framework, platform-level",{"type":74,"tag":237,"props":265,"children":266},{},[267],{"type":80,"value":268},"Request interception before cache: rewrites, redirects, geo, A\u002FB",{"type":74,"tag":201,"props":270,"children":271},{},[272,280,305,310,315],{"type":74,"tag":237,"props":273,"children":274},{},[275],{"type":74,"tag":101,"props":276,"children":277},{},[278],{"type":80,"value":279},"Next.js 16 Proxy",{"type":74,"tag":237,"props":281,"children":282},{},[283,288,290,295,297,303],{"type":74,"tag":131,"props":284,"children":286},{"className":285},[],[287],{"type":80,"value":52},{"type":80,"value":289}," (root, or ",{"type":74,"tag":131,"props":291,"children":293},{"className":292},[],[294],{"type":80,"value":60},{"type":80,"value":296}," if using ",{"type":74,"tag":131,"props":298,"children":300},{"className":299},[],[301],{"type":80,"value":302},"--src-dir",{"type":80,"value":304},")",{"type":74,"tag":237,"props":306,"children":307},{},[308],{"type":80,"value":309},"Node.js only",{"type":74,"tag":237,"props":311,"children":312},{},[313],{"type":80,"value":314},"Next.js 16+ only",{"type":74,"tag":237,"props":316,"children":317},{},[318],{"type":80,"value":319},"Network-boundary proxy needing full Node APIs. NOT for auth.",{"type":74,"tag":201,"props":321,"children":322},{},[323,330,335,340,345],{"type":74,"tag":237,"props":324,"children":325},{},[326],{"type":74,"tag":101,"props":327,"children":328},{},[329],{"type":80,"value":23},{"type":74,"tag":237,"props":331,"children":332},{},[333],{"type":80,"value":334},"Any function file",{"type":74,"tag":237,"props":336,"children":337},{},[338],{"type":80,"value":339},"V8 isolates",{"type":74,"tag":237,"props":341,"children":342},{},[343],{"type":80,"value":344},"General-purpose",{"type":74,"tag":237,"props":346,"children":347},{},[348],{"type":80,"value":349},"Standalone edge compute endpoints, not an interception layer",{"type":74,"tag":83,"props":351,"children":352},{},[353,358,359,364,366,371,373,379,381,387,389,395,397],{"type":74,"tag":101,"props":354,"children":355},{},[356],{"type":80,"value":357},"Why the rename in Next.js 16",{"type":80,"value":129},{"type":74,"tag":131,"props":360,"children":362},{"className":361},[],[363],{"type":80,"value":48},{"type":80,"value":365}," → ",{"type":74,"tag":131,"props":367,"children":369},{"className":368},[],[370],{"type":80,"value":52},{"type":80,"value":372}," clarifies it sits at the network boundary (not general-purpose middleware). Partly motivated by CVE-2025-29927 (middleware auth bypass via ",{"type":74,"tag":131,"props":374,"children":376},{"className":375},[],[377],{"type":80,"value":378},"x-middleware-subrequest",{"type":80,"value":380}," header). The exported function must also be renamed from ",{"type":74,"tag":131,"props":382,"children":384},{"className":383},[],[385],{"type":80,"value":386},"middleware",{"type":80,"value":388}," to ",{"type":74,"tag":131,"props":390,"children":392},{"className":391},[],[393],{"type":80,"value":394},"proxy",{"type":80,"value":396},". Migration codemod: ",{"type":74,"tag":131,"props":398,"children":400},{"className":399},[],[401],{"type":80,"value":402},"npx @next\u002Fcodemod@latest middleware-to-proxy",{"type":74,"tag":83,"props":404,"children":405},{},[406,411,413,418],{"type":74,"tag":101,"props":407,"children":408},{},[409],{"type":80,"value":410},"Deprecation",{"type":80,"value":412},": Next.js 16 still accepts ",{"type":74,"tag":131,"props":414,"children":416},{"className":415},[],[417],{"type":80,"value":48},{"type":80,"value":419}," but treats it as deprecated and logs a warning. It will be removed in a future version.",{"type":74,"tag":89,"props":421,"children":423},{"id":422},"bun-runtime",[424],{"type":80,"value":425},"Bun Runtime",{"type":74,"tag":83,"props":427,"children":428},{},[429,431,436,437,442],{"type":80,"value":430},"To run Routing Middleware (and all Vercel Functions) on Bun, add ",{"type":74,"tag":131,"props":432,"children":434},{"className":433},[],[435],{"type":80,"value":178},{"type":80,"value":388},{"type":74,"tag":131,"props":438,"children":440},{"className":439},[],[441],{"type":80,"value":64},{"type":80,"value":443},":",{"type":74,"tag":445,"props":446,"children":451},"pre",{"className":447,"code":448,"language":449,"meta":450,"style":450},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"bunVersion\": \"1.x\"\n}\n","json","",[452],{"type":74,"tag":131,"props":453,"children":454},{"__ignoreMap":450},[455,467,506],{"type":74,"tag":456,"props":457,"children":460},"span",{"class":458,"line":459},"line",1,[461],{"type":74,"tag":456,"props":462,"children":464},{"style":463},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[465],{"type":80,"value":466},"{\n",{"type":74,"tag":456,"props":468,"children":470},{"class":458,"line":469},2,[471,476,481,486,490,495,501],{"type":74,"tag":456,"props":472,"children":473},{"style":463},[474],{"type":80,"value":475},"  \"",{"type":74,"tag":456,"props":477,"children":479},{"style":478},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[480],{"type":80,"value":178},{"type":74,"tag":456,"props":482,"children":483},{"style":463},[484],{"type":80,"value":485},"\"",{"type":74,"tag":456,"props":487,"children":488},{"style":463},[489],{"type":80,"value":443},{"type":74,"tag":456,"props":491,"children":492},{"style":463},[493],{"type":80,"value":494}," \"",{"type":74,"tag":456,"props":496,"children":498},{"style":497},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[499],{"type":80,"value":500},"1.x",{"type":74,"tag":456,"props":502,"children":503},{"style":463},[504],{"type":80,"value":505},"\"\n",{"type":74,"tag":456,"props":507,"children":509},{"class":458,"line":508},3,[510],{"type":74,"tag":456,"props":511,"children":512},{"style":463},[513],{"type":80,"value":514},"}\n",{"type":74,"tag":83,"props":516,"children":517},{},[518,520,526],{"type":80,"value":519},"Set the middleware runtime to ",{"type":74,"tag":131,"props":521,"children":523},{"className":522},[],[524],{"type":80,"value":525},"nodejs",{"type":80,"value":527}," — Bun replaces the Node.js runtime transparently:",{"type":74,"tag":445,"props":529,"children":533},{"className":530,"code":531,"language":532,"meta":450,"style":450},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","export const config = {\n  runtime: 'nodejs', \u002F\u002F Bun swaps in when bunVersion is set\n};\n","ts",[534],{"type":74,"tag":131,"props":535,"children":536},{"__ignoreMap":450},[537,567,605],{"type":74,"tag":456,"props":538,"children":539},{"class":458,"line":459},[540,546,551,557,562],{"type":74,"tag":456,"props":541,"children":543},{"style":542},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[544],{"type":80,"value":545},"export",{"type":74,"tag":456,"props":547,"children":548},{"style":478},[549],{"type":80,"value":550}," const",{"type":74,"tag":456,"props":552,"children":554},{"style":553},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[555],{"type":80,"value":556}," config ",{"type":74,"tag":456,"props":558,"children":559},{"style":463},[560],{"type":80,"value":561},"=",{"type":74,"tag":456,"props":563,"children":564},{"style":463},[565],{"type":80,"value":566}," {\n",{"type":74,"tag":456,"props":568,"children":569},{"class":458,"line":469},[570,576,580,585,589,594,599],{"type":74,"tag":456,"props":571,"children":573},{"style":572},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[574],{"type":80,"value":575},"  runtime",{"type":74,"tag":456,"props":577,"children":578},{"style":463},[579],{"type":80,"value":443},{"type":74,"tag":456,"props":581,"children":582},{"style":463},[583],{"type":80,"value":584}," '",{"type":74,"tag":456,"props":586,"children":587},{"style":497},[588],{"type":80,"value":525},{"type":74,"tag":456,"props":590,"children":591},{"style":463},[592],{"type":80,"value":593},"'",{"type":74,"tag":456,"props":595,"children":596},{"style":463},[597],{"type":80,"value":598},",",{"type":74,"tag":456,"props":600,"children":602},{"style":601},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[603],{"type":80,"value":604}," \u002F\u002F Bun swaps in when bunVersion is set\n",{"type":74,"tag":456,"props":606,"children":607},{"class":458,"line":508},[608],{"type":74,"tag":456,"props":609,"children":610},{"style":463},[611],{"type":80,"value":612},"};\n",{"type":74,"tag":83,"props":614,"children":615},{},[616],{"type":80,"value":617},"Bun reduces average latency by ~28% in CPU-bound workloads. Currently in Public Beta — supports Next.js, Express, Hono, and Nitro.",{"type":74,"tag":89,"props":619,"children":621},{"id":620},"basic-example",[622],{"type":80,"value":623},"Basic Example",{"type":74,"tag":445,"props":625,"children":627},{"className":530,"code":626,"language":532,"meta":450,"style":450},"\u002F\u002F middleware.ts (project root)\nimport { geolocation, rewrite } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request) {\n  const { country } = geolocation(request);\n  const url = new URL(request.url);\n  url.pathname = country === 'US' ? '\u002Fus' + url.pathname : '\u002Fintl' + url.pathname;\n  return rewrite(url);\n}\n\nexport const config = {\n  runtime: 'edge', \u002F\u002F 'edge' (default) | 'nodejs'\n};\n",[628],{"type":74,"tag":131,"props":629,"children":630},{"__ignoreMap":450},[631,639,694,703,756,803,855,972,1001,1009,1017,1041,1075],{"type":74,"tag":456,"props":632,"children":633},{"class":458,"line":459},[634],{"type":74,"tag":456,"props":635,"children":636},{"style":601},[637],{"type":80,"value":638},"\u002F\u002F middleware.ts (project root)\n",{"type":74,"tag":456,"props":640,"children":641},{"class":458,"line":469},[642,647,652,657,661,666,671,676,680,685,689],{"type":74,"tag":456,"props":643,"children":644},{"style":542},[645],{"type":80,"value":646},"import",{"type":74,"tag":456,"props":648,"children":649},{"style":463},[650],{"type":80,"value":651}," {",{"type":74,"tag":456,"props":653,"children":654},{"style":553},[655],{"type":80,"value":656}," geolocation",{"type":74,"tag":456,"props":658,"children":659},{"style":463},[660],{"type":80,"value":598},{"type":74,"tag":456,"props":662,"children":663},{"style":553},[664],{"type":80,"value":665}," rewrite",{"type":74,"tag":456,"props":667,"children":668},{"style":463},[669],{"type":80,"value":670}," }",{"type":74,"tag":456,"props":672,"children":673},{"style":542},[674],{"type":80,"value":675}," from",{"type":74,"tag":456,"props":677,"children":678},{"style":463},[679],{"type":80,"value":584},{"type":74,"tag":456,"props":681,"children":682},{"style":497},[683],{"type":80,"value":684},"@vercel\u002Ffunctions",{"type":74,"tag":456,"props":686,"children":687},{"style":463},[688],{"type":80,"value":593},{"type":74,"tag":456,"props":690,"children":691},{"style":463},[692],{"type":80,"value":693},";\n",{"type":74,"tag":456,"props":695,"children":696},{"class":458,"line":508},[697],{"type":74,"tag":456,"props":698,"children":700},{"emptyLinePlaceholder":699},true,[701],{"type":80,"value":702},"\n",{"type":74,"tag":456,"props":704,"children":706},{"class":458,"line":705},4,[707,711,716,721,727,732,738,742,748,752],{"type":74,"tag":456,"props":708,"children":709},{"style":542},[710],{"type":80,"value":545},{"type":74,"tag":456,"props":712,"children":713},{"style":542},[714],{"type":80,"value":715}," default",{"type":74,"tag":456,"props":717,"children":718},{"style":478},[719],{"type":80,"value":720}," function",{"type":74,"tag":456,"props":722,"children":724},{"style":723},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[725],{"type":80,"value":726}," middleware",{"type":74,"tag":456,"props":728,"children":729},{"style":463},[730],{"type":80,"value":731},"(",{"type":74,"tag":456,"props":733,"children":735},{"style":734},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[736],{"type":80,"value":737},"request",{"type":74,"tag":456,"props":739,"children":740},{"style":463},[741],{"type":80,"value":443},{"type":74,"tag":456,"props":743,"children":745},{"style":744},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[746],{"type":80,"value":747}," Request",{"type":74,"tag":456,"props":749,"children":750},{"style":463},[751],{"type":80,"value":304},{"type":74,"tag":456,"props":753,"children":754},{"style":463},[755],{"type":80,"value":566},{"type":74,"tag":456,"props":757,"children":759},{"class":458,"line":758},5,[760,765,769,774,778,783,787,791,795,799],{"type":74,"tag":456,"props":761,"children":762},{"style":478},[763],{"type":80,"value":764},"  const",{"type":74,"tag":456,"props":766,"children":767},{"style":463},[768],{"type":80,"value":651},{"type":74,"tag":456,"props":770,"children":771},{"style":553},[772],{"type":80,"value":773}," country",{"type":74,"tag":456,"props":775,"children":776},{"style":463},[777],{"type":80,"value":670},{"type":74,"tag":456,"props":779,"children":780},{"style":463},[781],{"type":80,"value":782}," =",{"type":74,"tag":456,"props":784,"children":785},{"style":723},[786],{"type":80,"value":656},{"type":74,"tag":456,"props":788,"children":789},{"style":572},[790],{"type":80,"value":731},{"type":74,"tag":456,"props":792,"children":793},{"style":553},[794],{"type":80,"value":737},{"type":74,"tag":456,"props":796,"children":797},{"style":572},[798],{"type":80,"value":304},{"type":74,"tag":456,"props":800,"children":801},{"style":463},[802],{"type":80,"value":693},{"type":74,"tag":456,"props":804,"children":805},{"class":458,"line":42},[806,810,815,819,824,829,833,837,842,847,851],{"type":74,"tag":456,"props":807,"children":808},{"style":478},[809],{"type":80,"value":764},{"type":74,"tag":456,"props":811,"children":812},{"style":553},[813],{"type":80,"value":814}," url",{"type":74,"tag":456,"props":816,"children":817},{"style":463},[818],{"type":80,"value":782},{"type":74,"tag":456,"props":820,"children":821},{"style":463},[822],{"type":80,"value":823}," new",{"type":74,"tag":456,"props":825,"children":826},{"style":723},[827],{"type":80,"value":828}," URL",{"type":74,"tag":456,"props":830,"children":831},{"style":572},[832],{"type":80,"value":731},{"type":74,"tag":456,"props":834,"children":835},{"style":553},[836],{"type":80,"value":737},{"type":74,"tag":456,"props":838,"children":839},{"style":463},[840],{"type":80,"value":841},".",{"type":74,"tag":456,"props":843,"children":844},{"style":553},[845],{"type":80,"value":846},"url",{"type":74,"tag":456,"props":848,"children":849},{"style":572},[850],{"type":80,"value":304},{"type":74,"tag":456,"props":852,"children":853},{"style":463},[854],{"type":80,"value":693},{"type":74,"tag":456,"props":856,"children":858},{"class":458,"line":857},7,[859,864,868,873,877,881,886,890,895,899,904,908,913,917,922,926,930,934,939,943,948,952,956,960,964,968],{"type":74,"tag":456,"props":860,"children":861},{"style":553},[862],{"type":80,"value":863},"  url",{"type":74,"tag":456,"props":865,"children":866},{"style":463},[867],{"type":80,"value":841},{"type":74,"tag":456,"props":869,"children":870},{"style":553},[871],{"type":80,"value":872},"pathname",{"type":74,"tag":456,"props":874,"children":875},{"style":463},[876],{"type":80,"value":782},{"type":74,"tag":456,"props":878,"children":879},{"style":553},[880],{"type":80,"value":773},{"type":74,"tag":456,"props":882,"children":883},{"style":463},[884],{"type":80,"value":885}," ===",{"type":74,"tag":456,"props":887,"children":888},{"style":463},[889],{"type":80,"value":584},{"type":74,"tag":456,"props":891,"children":892},{"style":497},[893],{"type":80,"value":894},"US",{"type":74,"tag":456,"props":896,"children":897},{"style":463},[898],{"type":80,"value":593},{"type":74,"tag":456,"props":900,"children":901},{"style":463},[902],{"type":80,"value":903}," ?",{"type":74,"tag":456,"props":905,"children":906},{"style":463},[907],{"type":80,"value":584},{"type":74,"tag":456,"props":909,"children":910},{"style":497},[911],{"type":80,"value":912},"\u002Fus",{"type":74,"tag":456,"props":914,"children":915},{"style":463},[916],{"type":80,"value":593},{"type":74,"tag":456,"props":918,"children":919},{"style":463},[920],{"type":80,"value":921}," +",{"type":74,"tag":456,"props":923,"children":924},{"style":553},[925],{"type":80,"value":814},{"type":74,"tag":456,"props":927,"children":928},{"style":463},[929],{"type":80,"value":841},{"type":74,"tag":456,"props":931,"children":932},{"style":553},[933],{"type":80,"value":872},{"type":74,"tag":456,"props":935,"children":936},{"style":463},[937],{"type":80,"value":938}," :",{"type":74,"tag":456,"props":940,"children":941},{"style":463},[942],{"type":80,"value":584},{"type":74,"tag":456,"props":944,"children":945},{"style":497},[946],{"type":80,"value":947},"\u002Fintl",{"type":74,"tag":456,"props":949,"children":950},{"style":463},[951],{"type":80,"value":593},{"type":74,"tag":456,"props":953,"children":954},{"style":463},[955],{"type":80,"value":921},{"type":74,"tag":456,"props":957,"children":958},{"style":553},[959],{"type":80,"value":814},{"type":74,"tag":456,"props":961,"children":962},{"style":463},[963],{"type":80,"value":841},{"type":74,"tag":456,"props":965,"children":966},{"style":553},[967],{"type":80,"value":872},{"type":74,"tag":456,"props":969,"children":970},{"style":463},[971],{"type":80,"value":693},{"type":74,"tag":456,"props":973,"children":975},{"class":458,"line":974},8,[976,981,985,989,993,997],{"type":74,"tag":456,"props":977,"children":978},{"style":542},[979],{"type":80,"value":980},"  return",{"type":74,"tag":456,"props":982,"children":983},{"style":723},[984],{"type":80,"value":665},{"type":74,"tag":456,"props":986,"children":987},{"style":572},[988],{"type":80,"value":731},{"type":74,"tag":456,"props":990,"children":991},{"style":553},[992],{"type":80,"value":846},{"type":74,"tag":456,"props":994,"children":995},{"style":572},[996],{"type":80,"value":304},{"type":74,"tag":456,"props":998,"children":999},{"style":463},[1000],{"type":80,"value":693},{"type":74,"tag":456,"props":1002,"children":1004},{"class":458,"line":1003},9,[1005],{"type":74,"tag":456,"props":1006,"children":1007},{"style":463},[1008],{"type":80,"value":514},{"type":74,"tag":456,"props":1010,"children":1012},{"class":458,"line":1011},10,[1013],{"type":74,"tag":456,"props":1014,"children":1015},{"emptyLinePlaceholder":699},[1016],{"type":80,"value":702},{"type":74,"tag":456,"props":1018,"children":1020},{"class":458,"line":1019},11,[1021,1025,1029,1033,1037],{"type":74,"tag":456,"props":1022,"children":1023},{"style":542},[1024],{"type":80,"value":545},{"type":74,"tag":456,"props":1026,"children":1027},{"style":478},[1028],{"type":80,"value":550},{"type":74,"tag":456,"props":1030,"children":1031},{"style":553},[1032],{"type":80,"value":556},{"type":74,"tag":456,"props":1034,"children":1035},{"style":463},[1036],{"type":80,"value":561},{"type":74,"tag":456,"props":1038,"children":1039},{"style":463},[1040],{"type":80,"value":566},{"type":74,"tag":456,"props":1042,"children":1044},{"class":458,"line":1043},12,[1045,1049,1053,1057,1062,1066,1070],{"type":74,"tag":456,"props":1046,"children":1047},{"style":572},[1048],{"type":80,"value":575},{"type":74,"tag":456,"props":1050,"children":1051},{"style":463},[1052],{"type":80,"value":443},{"type":74,"tag":456,"props":1054,"children":1055},{"style":463},[1056],{"type":80,"value":584},{"type":74,"tag":456,"props":1058,"children":1059},{"style":497},[1060],{"type":80,"value":1061},"edge",{"type":74,"tag":456,"props":1063,"children":1064},{"style":463},[1065],{"type":80,"value":593},{"type":74,"tag":456,"props":1067,"children":1068},{"style":463},[1069],{"type":80,"value":598},{"type":74,"tag":456,"props":1071,"children":1072},{"style":601},[1073],{"type":80,"value":1074}," \u002F\u002F 'edge' (default) | 'nodejs'\n",{"type":74,"tag":456,"props":1076,"children":1078},{"class":458,"line":1077},13,[1079],{"type":74,"tag":456,"props":1080,"children":1081},{"style":463},[1082],{"type":80,"value":612},{"type":74,"tag":89,"props":1084,"children":1086},{"id":1085},"helper-methods-vercelfunctions",[1087,1089,1094],{"type":80,"value":1088},"Helper Methods (",{"type":74,"tag":131,"props":1090,"children":1092},{"className":1091},[],[1093],{"type":80,"value":684},{"type":80,"value":304},{"type":74,"tag":83,"props":1096,"children":1097},{},[1098,1100,1105],{"type":80,"value":1099},"For non-Next.js frameworks, import from ",{"type":74,"tag":131,"props":1101,"children":1103},{"className":1102},[],[1104],{"type":80,"value":684},{"type":80,"value":443},{"type":74,"tag":193,"props":1107,"children":1108},{},[1109,1125],{"type":74,"tag":197,"props":1110,"children":1111},{},[1112],{"type":74,"tag":201,"props":1113,"children":1114},{},[1115,1120],{"type":74,"tag":205,"props":1116,"children":1117},{},[1118],{"type":80,"value":1119},"Helper",{"type":74,"tag":205,"props":1121,"children":1122},{},[1123],{"type":80,"value":1124},"Purpose",{"type":74,"tag":230,"props":1126,"children":1127},{},[1128,1145,1162,1214,1231],{"type":74,"tag":201,"props":1129,"children":1130},{},[1131,1140],{"type":74,"tag":237,"props":1132,"children":1133},{},[1134],{"type":74,"tag":131,"props":1135,"children":1137},{"className":1136},[],[1138],{"type":80,"value":1139},"next()",{"type":74,"tag":237,"props":1141,"children":1142},{},[1143],{"type":80,"value":1144},"Continue middleware chain (optionally modify headers)",{"type":74,"tag":201,"props":1146,"children":1147},{},[1148,1157],{"type":74,"tag":237,"props":1149,"children":1150},{},[1151],{"type":74,"tag":131,"props":1152,"children":1154},{"className":1153},[],[1155],{"type":80,"value":1156},"rewrite(url)",{"type":74,"tag":237,"props":1158,"children":1159},{},[1160],{"type":80,"value":1161},"Transparently serve content from a different URL",{"type":74,"tag":201,"props":1163,"children":1164},{},[1165,1174],{"type":74,"tag":237,"props":1166,"children":1167},{},[1168],{"type":74,"tag":131,"props":1169,"children":1171},{"className":1170},[],[1172],{"type":80,"value":1173},"geolocation(request)",{"type":74,"tag":237,"props":1175,"children":1176},{},[1177,1179,1185,1187,1193,1194,1200,1201,1207,1208],{"type":80,"value":1178},"Get ",{"type":74,"tag":131,"props":1180,"children":1182},{"className":1181},[],[1183],{"type":80,"value":1184},"city",{"type":80,"value":1186},", ",{"type":74,"tag":131,"props":1188,"children":1190},{"className":1189},[],[1191],{"type":80,"value":1192},"country",{"type":80,"value":1186},{"type":74,"tag":131,"props":1195,"children":1197},{"className":1196},[],[1198],{"type":80,"value":1199},"latitude",{"type":80,"value":1186},{"type":74,"tag":131,"props":1202,"children":1204},{"className":1203},[],[1205],{"type":80,"value":1206},"longitude",{"type":80,"value":1186},{"type":74,"tag":131,"props":1209,"children":1211},{"className":1210},[],[1212],{"type":80,"value":1213},"region",{"type":74,"tag":201,"props":1215,"children":1216},{},[1217,1226],{"type":74,"tag":237,"props":1218,"children":1219},{},[1220],{"type":74,"tag":131,"props":1221,"children":1223},{"className":1222},[],[1224],{"type":80,"value":1225},"ipAddress(request)",{"type":74,"tag":237,"props":1227,"children":1228},{},[1229],{"type":80,"value":1230},"Get client IP address",{"type":74,"tag":201,"props":1232,"children":1233},{},[1234,1243],{"type":74,"tag":237,"props":1235,"children":1236},{},[1237],{"type":74,"tag":131,"props":1238,"children":1240},{"className":1239},[],[1241],{"type":80,"value":1242},"waitUntil(promise)",{"type":74,"tag":237,"props":1244,"children":1245},{},[1246],{"type":80,"value":1247},"Keep function running after response is sent",{"type":74,"tag":83,"props":1249,"children":1250},{},[1251,1253,1259,1261,1266,1267,1273,1274,1280,1282,1288,1289,1295,1296,1302],{"type":80,"value":1252},"For Next.js, equivalent helpers are on ",{"type":74,"tag":131,"props":1254,"children":1256},{"className":1255},[],[1257],{"type":80,"value":1258},"NextResponse",{"type":80,"value":1260}," (",{"type":74,"tag":131,"props":1262,"children":1264},{"className":1263},[],[1265],{"type":80,"value":1139},{"type":80,"value":1186},{"type":74,"tag":131,"props":1268,"children":1270},{"className":1269},[],[1271],{"type":80,"value":1272},"rewrite()",{"type":80,"value":1186},{"type":74,"tag":131,"props":1275,"children":1277},{"className":1276},[],[1278],{"type":80,"value":1279},"redirect()",{"type":80,"value":1281},") and ",{"type":74,"tag":131,"props":1283,"children":1285},{"className":1284},[],[1286],{"type":80,"value":1287},"NextRequest",{"type":80,"value":1260},{"type":74,"tag":131,"props":1290,"children":1292},{"className":1291},[],[1293],{"type":80,"value":1294},"request.geo",{"type":80,"value":1186},{"type":74,"tag":131,"props":1297,"children":1299},{"className":1298},[],[1300],{"type":80,"value":1301},"request.ip",{"type":80,"value":1303},").",{"type":74,"tag":89,"props":1305,"children":1307},{"id":1306},"matcher-configuration",[1308],{"type":80,"value":1309},"Matcher Configuration",{"type":74,"tag":83,"props":1311,"children":1312},{},[1313,1315,1320,1322,1328],{"type":80,"value":1314},"Middleware runs on ",{"type":74,"tag":101,"props":1316,"children":1317},{},[1318],{"type":80,"value":1319},"every route",{"type":80,"value":1321}," by default. Use ",{"type":74,"tag":131,"props":1323,"children":1325},{"className":1324},[],[1326],{"type":80,"value":1327},"config.matcher",{"type":80,"value":1329}," to scope it:",{"type":74,"tag":445,"props":1331,"children":1333},{"className":530,"code":1332,"language":532,"meta":450,"style":450},"\u002F\u002F Single path\nexport const config = { matcher: '\u002Fdashboard\u002F:path*' };\n\n\u002F\u002F Multiple paths\nexport const config = { matcher: ['\u002Fdashboard\u002F:path*', '\u002Fapi\u002F:path*'] };\n\n\u002F\u002F Regex: exclude static files\nexport const config = {\n  matcher: ['\u002F((?!_next\u002Fstatic|favicon.ico).*)'],\n};\n",[1334],{"type":74,"tag":131,"props":1335,"children":1336},{"__ignoreMap":450},[1337,1345,1395,1402,1410,1484,1491,1499,1522,1561],{"type":74,"tag":456,"props":1338,"children":1339},{"class":458,"line":459},[1340],{"type":74,"tag":456,"props":1341,"children":1342},{"style":601},[1343],{"type":80,"value":1344},"\u002F\u002F Single path\n",{"type":74,"tag":456,"props":1346,"children":1347},{"class":458,"line":469},[1348,1352,1356,1360,1364,1368,1373,1377,1381,1386,1390],{"type":74,"tag":456,"props":1349,"children":1350},{"style":542},[1351],{"type":80,"value":545},{"type":74,"tag":456,"props":1353,"children":1354},{"style":478},[1355],{"type":80,"value":550},{"type":74,"tag":456,"props":1357,"children":1358},{"style":553},[1359],{"type":80,"value":556},{"type":74,"tag":456,"props":1361,"children":1362},{"style":463},[1363],{"type":80,"value":561},{"type":74,"tag":456,"props":1365,"children":1366},{"style":463},[1367],{"type":80,"value":651},{"type":74,"tag":456,"props":1369,"children":1370},{"style":572},[1371],{"type":80,"value":1372}," matcher",{"type":74,"tag":456,"props":1374,"children":1375},{"style":463},[1376],{"type":80,"value":443},{"type":74,"tag":456,"props":1378,"children":1379},{"style":463},[1380],{"type":80,"value":584},{"type":74,"tag":456,"props":1382,"children":1383},{"style":497},[1384],{"type":80,"value":1385},"\u002Fdashboard\u002F:path*",{"type":74,"tag":456,"props":1387,"children":1388},{"style":463},[1389],{"type":80,"value":593},{"type":74,"tag":456,"props":1391,"children":1392},{"style":463},[1393],{"type":80,"value":1394}," };\n",{"type":74,"tag":456,"props":1396,"children":1397},{"class":458,"line":508},[1398],{"type":74,"tag":456,"props":1399,"children":1400},{"emptyLinePlaceholder":699},[1401],{"type":80,"value":702},{"type":74,"tag":456,"props":1403,"children":1404},{"class":458,"line":705},[1405],{"type":74,"tag":456,"props":1406,"children":1407},{"style":601},[1408],{"type":80,"value":1409},"\u002F\u002F Multiple paths\n",{"type":74,"tag":456,"props":1411,"children":1412},{"class":458,"line":758},[1413,1417,1421,1425,1429,1433,1437,1441,1446,1450,1454,1458,1462,1466,1471,1475,1480],{"type":74,"tag":456,"props":1414,"children":1415},{"style":542},[1416],{"type":80,"value":545},{"type":74,"tag":456,"props":1418,"children":1419},{"style":478},[1420],{"type":80,"value":550},{"type":74,"tag":456,"props":1422,"children":1423},{"style":553},[1424],{"type":80,"value":556},{"type":74,"tag":456,"props":1426,"children":1427},{"style":463},[1428],{"type":80,"value":561},{"type":74,"tag":456,"props":1430,"children":1431},{"style":463},[1432],{"type":80,"value":651},{"type":74,"tag":456,"props":1434,"children":1435},{"style":572},[1436],{"type":80,"value":1372},{"type":74,"tag":456,"props":1438,"children":1439},{"style":463},[1440],{"type":80,"value":443},{"type":74,"tag":456,"props":1442,"children":1443},{"style":553},[1444],{"type":80,"value":1445}," [",{"type":74,"tag":456,"props":1447,"children":1448},{"style":463},[1449],{"type":80,"value":593},{"type":74,"tag":456,"props":1451,"children":1452},{"style":497},[1453],{"type":80,"value":1385},{"type":74,"tag":456,"props":1455,"children":1456},{"style":463},[1457],{"type":80,"value":593},{"type":74,"tag":456,"props":1459,"children":1460},{"style":463},[1461],{"type":80,"value":598},{"type":74,"tag":456,"props":1463,"children":1464},{"style":463},[1465],{"type":80,"value":584},{"type":74,"tag":456,"props":1467,"children":1468},{"style":497},[1469],{"type":80,"value":1470},"\u002Fapi\u002F:path*",{"type":74,"tag":456,"props":1472,"children":1473},{"style":463},[1474],{"type":80,"value":593},{"type":74,"tag":456,"props":1476,"children":1477},{"style":553},[1478],{"type":80,"value":1479},"] ",{"type":74,"tag":456,"props":1481,"children":1482},{"style":463},[1483],{"type":80,"value":612},{"type":74,"tag":456,"props":1485,"children":1486},{"class":458,"line":42},[1487],{"type":74,"tag":456,"props":1488,"children":1489},{"emptyLinePlaceholder":699},[1490],{"type":80,"value":702},{"type":74,"tag":456,"props":1492,"children":1493},{"class":458,"line":857},[1494],{"type":74,"tag":456,"props":1495,"children":1496},{"style":601},[1497],{"type":80,"value":1498},"\u002F\u002F Regex: exclude static files\n",{"type":74,"tag":456,"props":1500,"children":1501},{"class":458,"line":974},[1502,1506,1510,1514,1518],{"type":74,"tag":456,"props":1503,"children":1504},{"style":542},[1505],{"type":80,"value":545},{"type":74,"tag":456,"props":1507,"children":1508},{"style":478},[1509],{"type":80,"value":550},{"type":74,"tag":456,"props":1511,"children":1512},{"style":553},[1513],{"type":80,"value":556},{"type":74,"tag":456,"props":1515,"children":1516},{"style":463},[1517],{"type":80,"value":561},{"type":74,"tag":456,"props":1519,"children":1520},{"style":463},[1521],{"type":80,"value":566},{"type":74,"tag":456,"props":1523,"children":1524},{"class":458,"line":1003},[1525,1530,1534,1538,1542,1547,1551,1556],{"type":74,"tag":456,"props":1526,"children":1527},{"style":572},[1528],{"type":80,"value":1529},"  matcher",{"type":74,"tag":456,"props":1531,"children":1532},{"style":463},[1533],{"type":80,"value":443},{"type":74,"tag":456,"props":1535,"children":1536},{"style":553},[1537],{"type":80,"value":1445},{"type":74,"tag":456,"props":1539,"children":1540},{"style":463},[1541],{"type":80,"value":593},{"type":74,"tag":456,"props":1543,"children":1544},{"style":497},[1545],{"type":80,"value":1546},"\u002F((?!_next\u002Fstatic|favicon.ico).*)",{"type":74,"tag":456,"props":1548,"children":1549},{"style":463},[1550],{"type":80,"value":593},{"type":74,"tag":456,"props":1552,"children":1553},{"style":553},[1554],{"type":80,"value":1555},"]",{"type":74,"tag":456,"props":1557,"children":1558},{"style":463},[1559],{"type":80,"value":1560},",\n",{"type":74,"tag":456,"props":1562,"children":1563},{"class":458,"line":1011},[1564],{"type":74,"tag":456,"props":1565,"children":1566},{"style":463},[1567],{"type":80,"value":612},{"type":74,"tag":83,"props":1569,"children":1570},{},[1571,1576,1578,1584],{"type":74,"tag":101,"props":1572,"children":1573},{},[1574],{"type":80,"value":1575},"Tip",{"type":80,"value":1577},": Using ",{"type":74,"tag":131,"props":1579,"children":1581},{"className":1580},[],[1582],{"type":80,"value":1583},"matcher",{"type":80,"value":1585}," is preferred — unmatched paths skip middleware invocation entirely (saves compute).",{"type":74,"tag":89,"props":1587,"children":1589},{"id":1588},"common-patterns",[1590],{"type":80,"value":1591},"Common Patterns",{"type":74,"tag":1593,"props":1594,"children":1596},"h3",{"id":1595},"ip-based-header-injection",[1597],{"type":80,"value":1598},"IP-Based Header Injection",{"type":74,"tag":445,"props":1600,"children":1602},{"className":530,"code":1601,"language":532,"meta":450,"style":450},"import { ipAddress, next } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request) {\n  return next({ headers: { 'x-real-ip': ipAddress(request) || 'unknown' } });\n}\n",[1603],{"type":74,"tag":131,"props":1604,"children":1605},{"__ignoreMap":450},[1606,1655,1662,1705,1806],{"type":74,"tag":456,"props":1607,"children":1608},{"class":458,"line":459},[1609,1613,1617,1622,1626,1631,1635,1639,1643,1647,1651],{"type":74,"tag":456,"props":1610,"children":1611},{"style":542},[1612],{"type":80,"value":646},{"type":74,"tag":456,"props":1614,"children":1615},{"style":463},[1616],{"type":80,"value":651},{"type":74,"tag":456,"props":1618,"children":1619},{"style":553},[1620],{"type":80,"value":1621}," ipAddress",{"type":74,"tag":456,"props":1623,"children":1624},{"style":463},[1625],{"type":80,"value":598},{"type":74,"tag":456,"props":1627,"children":1628},{"style":553},[1629],{"type":80,"value":1630}," next",{"type":74,"tag":456,"props":1632,"children":1633},{"style":463},[1634],{"type":80,"value":670},{"type":74,"tag":456,"props":1636,"children":1637},{"style":542},[1638],{"type":80,"value":675},{"type":74,"tag":456,"props":1640,"children":1641},{"style":463},[1642],{"type":80,"value":584},{"type":74,"tag":456,"props":1644,"children":1645},{"style":497},[1646],{"type":80,"value":684},{"type":74,"tag":456,"props":1648,"children":1649},{"style":463},[1650],{"type":80,"value":593},{"type":74,"tag":456,"props":1652,"children":1653},{"style":463},[1654],{"type":80,"value":693},{"type":74,"tag":456,"props":1656,"children":1657},{"class":458,"line":469},[1658],{"type":74,"tag":456,"props":1659,"children":1660},{"emptyLinePlaceholder":699},[1661],{"type":80,"value":702},{"type":74,"tag":456,"props":1663,"children":1664},{"class":458,"line":508},[1665,1669,1673,1677,1681,1685,1689,1693,1697,1701],{"type":74,"tag":456,"props":1666,"children":1667},{"style":542},[1668],{"type":80,"value":545},{"type":74,"tag":456,"props":1670,"children":1671},{"style":542},[1672],{"type":80,"value":715},{"type":74,"tag":456,"props":1674,"children":1675},{"style":478},[1676],{"type":80,"value":720},{"type":74,"tag":456,"props":1678,"children":1679},{"style":723},[1680],{"type":80,"value":726},{"type":74,"tag":456,"props":1682,"children":1683},{"style":463},[1684],{"type":80,"value":731},{"type":74,"tag":456,"props":1686,"children":1687},{"style":734},[1688],{"type":80,"value":737},{"type":74,"tag":456,"props":1690,"children":1691},{"style":463},[1692],{"type":80,"value":443},{"type":74,"tag":456,"props":1694,"children":1695},{"style":744},[1696],{"type":80,"value":747},{"type":74,"tag":456,"props":1698,"children":1699},{"style":463},[1700],{"type":80,"value":304},{"type":74,"tag":456,"props":1702,"children":1703},{"style":463},[1704],{"type":80,"value":566},{"type":74,"tag":456,"props":1706,"children":1707},{"class":458,"line":705},[1708,1712,1716,1720,1725,1730,1734,1738,1742,1747,1751,1755,1759,1763,1767,1772,1777,1781,1786,1790,1794,1798,1802],{"type":74,"tag":456,"props":1709,"children":1710},{"style":542},[1711],{"type":80,"value":980},{"type":74,"tag":456,"props":1713,"children":1714},{"style":723},[1715],{"type":80,"value":1630},{"type":74,"tag":456,"props":1717,"children":1718},{"style":572},[1719],{"type":80,"value":731},{"type":74,"tag":456,"props":1721,"children":1722},{"style":463},[1723],{"type":80,"value":1724},"{",{"type":74,"tag":456,"props":1726,"children":1727},{"style":572},[1728],{"type":80,"value":1729}," headers",{"type":74,"tag":456,"props":1731,"children":1732},{"style":463},[1733],{"type":80,"value":443},{"type":74,"tag":456,"props":1735,"children":1736},{"style":463},[1737],{"type":80,"value":651},{"type":74,"tag":456,"props":1739,"children":1740},{"style":463},[1741],{"type":80,"value":584},{"type":74,"tag":456,"props":1743,"children":1744},{"style":572},[1745],{"type":80,"value":1746},"x-real-ip",{"type":74,"tag":456,"props":1748,"children":1749},{"style":463},[1750],{"type":80,"value":593},{"type":74,"tag":456,"props":1752,"children":1753},{"style":463},[1754],{"type":80,"value":443},{"type":74,"tag":456,"props":1756,"children":1757},{"style":723},[1758],{"type":80,"value":1621},{"type":74,"tag":456,"props":1760,"children":1761},{"style":572},[1762],{"type":80,"value":731},{"type":74,"tag":456,"props":1764,"children":1765},{"style":553},[1766],{"type":80,"value":737},{"type":74,"tag":456,"props":1768,"children":1769},{"style":572},[1770],{"type":80,"value":1771},") ",{"type":74,"tag":456,"props":1773,"children":1774},{"style":463},[1775],{"type":80,"value":1776},"||",{"type":74,"tag":456,"props":1778,"children":1779},{"style":463},[1780],{"type":80,"value":584},{"type":74,"tag":456,"props":1782,"children":1783},{"style":497},[1784],{"type":80,"value":1785},"unknown",{"type":74,"tag":456,"props":1787,"children":1788},{"style":463},[1789],{"type":80,"value":593},{"type":74,"tag":456,"props":1791,"children":1792},{"style":463},[1793],{"type":80,"value":670},{"type":74,"tag":456,"props":1795,"children":1796},{"style":463},[1797],{"type":80,"value":670},{"type":74,"tag":456,"props":1799,"children":1800},{"style":572},[1801],{"type":80,"value":304},{"type":74,"tag":456,"props":1803,"children":1804},{"style":463},[1805],{"type":80,"value":693},{"type":74,"tag":456,"props":1807,"children":1808},{"class":458,"line":758},[1809],{"type":74,"tag":456,"props":1810,"children":1811},{"style":463},[1812],{"type":80,"value":514},{"type":74,"tag":1593,"props":1814,"children":1816},{"id":1815},"ab-testing-via-edge-config",[1817],{"type":80,"value":1818},"A\u002FB Testing via Edge Config",{"type":74,"tag":445,"props":1820,"children":1822},{"className":530,"code":1821,"language":532,"meta":450,"style":450},"import { get } from '@vercel\u002Fedge-config';\nimport { rewrite } from '@vercel\u002Ffunctions';\n\nexport default async function middleware(request: Request) {\n  const variant = await get('experiment-homepage'); \u002F\u002F \u003C1ms read\n  const url = new URL(request.url);\n  url.pathname = variant === 'B' ? '\u002Fhome-b' : '\u002Fhome-a';\n  return rewrite(url);\n}\n",[1823],{"type":74,"tag":131,"props":1824,"children":1825},{"__ignoreMap":450},[1826,1867,1906,1913,1961,2017,2064,2142,2169],{"type":74,"tag":456,"props":1827,"children":1828},{"class":458,"line":459},[1829,1833,1837,1842,1846,1850,1854,1859,1863],{"type":74,"tag":456,"props":1830,"children":1831},{"style":542},[1832],{"type":80,"value":646},{"type":74,"tag":456,"props":1834,"children":1835},{"style":463},[1836],{"type":80,"value":651},{"type":74,"tag":456,"props":1838,"children":1839},{"style":553},[1840],{"type":80,"value":1841}," get",{"type":74,"tag":456,"props":1843,"children":1844},{"style":463},[1845],{"type":80,"value":670},{"type":74,"tag":456,"props":1847,"children":1848},{"style":542},[1849],{"type":80,"value":675},{"type":74,"tag":456,"props":1851,"children":1852},{"style":463},[1853],{"type":80,"value":584},{"type":74,"tag":456,"props":1855,"children":1856},{"style":497},[1857],{"type":80,"value":1858},"@vercel\u002Fedge-config",{"type":74,"tag":456,"props":1860,"children":1861},{"style":463},[1862],{"type":80,"value":593},{"type":74,"tag":456,"props":1864,"children":1865},{"style":463},[1866],{"type":80,"value":693},{"type":74,"tag":456,"props":1868,"children":1869},{"class":458,"line":469},[1870,1874,1878,1882,1886,1890,1894,1898,1902],{"type":74,"tag":456,"props":1871,"children":1872},{"style":542},[1873],{"type":80,"value":646},{"type":74,"tag":456,"props":1875,"children":1876},{"style":463},[1877],{"type":80,"value":651},{"type":74,"tag":456,"props":1879,"children":1880},{"style":553},[1881],{"type":80,"value":665},{"type":74,"tag":456,"props":1883,"children":1884},{"style":463},[1885],{"type":80,"value":670},{"type":74,"tag":456,"props":1887,"children":1888},{"style":542},[1889],{"type":80,"value":675},{"type":74,"tag":456,"props":1891,"children":1892},{"style":463},[1893],{"type":80,"value":584},{"type":74,"tag":456,"props":1895,"children":1896},{"style":497},[1897],{"type":80,"value":684},{"type":74,"tag":456,"props":1899,"children":1900},{"style":463},[1901],{"type":80,"value":593},{"type":74,"tag":456,"props":1903,"children":1904},{"style":463},[1905],{"type":80,"value":693},{"type":74,"tag":456,"props":1907,"children":1908},{"class":458,"line":508},[1909],{"type":74,"tag":456,"props":1910,"children":1911},{"emptyLinePlaceholder":699},[1912],{"type":80,"value":702},{"type":74,"tag":456,"props":1914,"children":1915},{"class":458,"line":705},[1916,1920,1924,1929,1933,1937,1941,1945,1949,1953,1957],{"type":74,"tag":456,"props":1917,"children":1918},{"style":542},[1919],{"type":80,"value":545},{"type":74,"tag":456,"props":1921,"children":1922},{"style":542},[1923],{"type":80,"value":715},{"type":74,"tag":456,"props":1925,"children":1926},{"style":478},[1927],{"type":80,"value":1928}," async",{"type":74,"tag":456,"props":1930,"children":1931},{"style":478},[1932],{"type":80,"value":720},{"type":74,"tag":456,"props":1934,"children":1935},{"style":723},[1936],{"type":80,"value":726},{"type":74,"tag":456,"props":1938,"children":1939},{"style":463},[1940],{"type":80,"value":731},{"type":74,"tag":456,"props":1942,"children":1943},{"style":734},[1944],{"type":80,"value":737},{"type":74,"tag":456,"props":1946,"children":1947},{"style":463},[1948],{"type":80,"value":443},{"type":74,"tag":456,"props":1950,"children":1951},{"style":744},[1952],{"type":80,"value":747},{"type":74,"tag":456,"props":1954,"children":1955},{"style":463},[1956],{"type":80,"value":304},{"type":74,"tag":456,"props":1958,"children":1959},{"style":463},[1960],{"type":80,"value":566},{"type":74,"tag":456,"props":1962,"children":1963},{"class":458,"line":758},[1964,1968,1973,1977,1982,1986,1990,1994,1999,2003,2007,2012],{"type":74,"tag":456,"props":1965,"children":1966},{"style":478},[1967],{"type":80,"value":764},{"type":74,"tag":456,"props":1969,"children":1970},{"style":553},[1971],{"type":80,"value":1972}," variant",{"type":74,"tag":456,"props":1974,"children":1975},{"style":463},[1976],{"type":80,"value":782},{"type":74,"tag":456,"props":1978,"children":1979},{"style":542},[1980],{"type":80,"value":1981}," await",{"type":74,"tag":456,"props":1983,"children":1984},{"style":723},[1985],{"type":80,"value":1841},{"type":74,"tag":456,"props":1987,"children":1988},{"style":572},[1989],{"type":80,"value":731},{"type":74,"tag":456,"props":1991,"children":1992},{"style":463},[1993],{"type":80,"value":593},{"type":74,"tag":456,"props":1995,"children":1996},{"style":497},[1997],{"type":80,"value":1998},"experiment-homepage",{"type":74,"tag":456,"props":2000,"children":2001},{"style":463},[2002],{"type":80,"value":593},{"type":74,"tag":456,"props":2004,"children":2005},{"style":572},[2006],{"type":80,"value":304},{"type":74,"tag":456,"props":2008,"children":2009},{"style":463},[2010],{"type":80,"value":2011},";",{"type":74,"tag":456,"props":2013,"children":2014},{"style":601},[2015],{"type":80,"value":2016}," \u002F\u002F \u003C1ms read\n",{"type":74,"tag":456,"props":2018,"children":2019},{"class":458,"line":42},[2020,2024,2028,2032,2036,2040,2044,2048,2052,2056,2060],{"type":74,"tag":456,"props":2021,"children":2022},{"style":478},[2023],{"type":80,"value":764},{"type":74,"tag":456,"props":2025,"children":2026},{"style":553},[2027],{"type":80,"value":814},{"type":74,"tag":456,"props":2029,"children":2030},{"style":463},[2031],{"type":80,"value":782},{"type":74,"tag":456,"props":2033,"children":2034},{"style":463},[2035],{"type":80,"value":823},{"type":74,"tag":456,"props":2037,"children":2038},{"style":723},[2039],{"type":80,"value":828},{"type":74,"tag":456,"props":2041,"children":2042},{"style":572},[2043],{"type":80,"value":731},{"type":74,"tag":456,"props":2045,"children":2046},{"style":553},[2047],{"type":80,"value":737},{"type":74,"tag":456,"props":2049,"children":2050},{"style":463},[2051],{"type":80,"value":841},{"type":74,"tag":456,"props":2053,"children":2054},{"style":553},[2055],{"type":80,"value":846},{"type":74,"tag":456,"props":2057,"children":2058},{"style":572},[2059],{"type":80,"value":304},{"type":74,"tag":456,"props":2061,"children":2062},{"style":463},[2063],{"type":80,"value":693},{"type":74,"tag":456,"props":2065,"children":2066},{"class":458,"line":857},[2067,2071,2075,2079,2083,2087,2091,2095,2100,2104,2108,2112,2117,2121,2125,2129,2134,2138],{"type":74,"tag":456,"props":2068,"children":2069},{"style":553},[2070],{"type":80,"value":863},{"type":74,"tag":456,"props":2072,"children":2073},{"style":463},[2074],{"type":80,"value":841},{"type":74,"tag":456,"props":2076,"children":2077},{"style":553},[2078],{"type":80,"value":872},{"type":74,"tag":456,"props":2080,"children":2081},{"style":463},[2082],{"type":80,"value":782},{"type":74,"tag":456,"props":2084,"children":2085},{"style":553},[2086],{"type":80,"value":1972},{"type":74,"tag":456,"props":2088,"children":2089},{"style":463},[2090],{"type":80,"value":885},{"type":74,"tag":456,"props":2092,"children":2093},{"style":463},[2094],{"type":80,"value":584},{"type":74,"tag":456,"props":2096,"children":2097},{"style":497},[2098],{"type":80,"value":2099},"B",{"type":74,"tag":456,"props":2101,"children":2102},{"style":463},[2103],{"type":80,"value":593},{"type":74,"tag":456,"props":2105,"children":2106},{"style":463},[2107],{"type":80,"value":903},{"type":74,"tag":456,"props":2109,"children":2110},{"style":463},[2111],{"type":80,"value":584},{"type":74,"tag":456,"props":2113,"children":2114},{"style":497},[2115],{"type":80,"value":2116},"\u002Fhome-b",{"type":74,"tag":456,"props":2118,"children":2119},{"style":463},[2120],{"type":80,"value":593},{"type":74,"tag":456,"props":2122,"children":2123},{"style":463},[2124],{"type":80,"value":938},{"type":74,"tag":456,"props":2126,"children":2127},{"style":463},[2128],{"type":80,"value":584},{"type":74,"tag":456,"props":2130,"children":2131},{"style":497},[2132],{"type":80,"value":2133},"\u002Fhome-a",{"type":74,"tag":456,"props":2135,"children":2136},{"style":463},[2137],{"type":80,"value":593},{"type":74,"tag":456,"props":2139,"children":2140},{"style":463},[2141],{"type":80,"value":693},{"type":74,"tag":456,"props":2143,"children":2144},{"class":458,"line":974},[2145,2149,2153,2157,2161,2165],{"type":74,"tag":456,"props":2146,"children":2147},{"style":542},[2148],{"type":80,"value":980},{"type":74,"tag":456,"props":2150,"children":2151},{"style":723},[2152],{"type":80,"value":665},{"type":74,"tag":456,"props":2154,"children":2155},{"style":572},[2156],{"type":80,"value":731},{"type":74,"tag":456,"props":2158,"children":2159},{"style":553},[2160],{"type":80,"value":846},{"type":74,"tag":456,"props":2162,"children":2163},{"style":572},[2164],{"type":80,"value":304},{"type":74,"tag":456,"props":2166,"children":2167},{"style":463},[2168],{"type":80,"value":693},{"type":74,"tag":456,"props":2170,"children":2171},{"class":458,"line":1003},[2172],{"type":74,"tag":456,"props":2173,"children":2174},{"style":463},[2175],{"type":80,"value":514},{"type":74,"tag":1593,"props":2177,"children":2179},{"id":2178},"background-processing",[2180],{"type":80,"value":2181},"Background Processing",{"type":74,"tag":445,"props":2183,"children":2185},{"className":530,"code":2184,"language":532,"meta":450,"style":450},"import type { RequestContext } from '@vercel\u002Ffunctions';\n\nexport default function middleware(request: Request, context: RequestContext) {\n  context.waitUntil(\n    fetch('https:\u002F\u002Fanalytics.example.com\u002Flog', { method: 'POST', body: request.url })\n  );\n  return new Response('OK');\n}\n",[2186],{"type":74,"tag":131,"props":2187,"children":2188},{"__ignoreMap":450},[2189,2234,2241,2301,2323,2413,2425,2466],{"type":74,"tag":456,"props":2190,"children":2191},{"class":458,"line":459},[2192,2196,2201,2205,2210,2214,2218,2222,2226,2230],{"type":74,"tag":456,"props":2193,"children":2194},{"style":542},[2195],{"type":80,"value":646},{"type":74,"tag":456,"props":2197,"children":2198},{"style":542},[2199],{"type":80,"value":2200}," type",{"type":74,"tag":456,"props":2202,"children":2203},{"style":463},[2204],{"type":80,"value":651},{"type":74,"tag":456,"props":2206,"children":2207},{"style":553},[2208],{"type":80,"value":2209}," RequestContext",{"type":74,"tag":456,"props":2211,"children":2212},{"style":463},[2213],{"type":80,"value":670},{"type":74,"tag":456,"props":2215,"children":2216},{"style":542},[2217],{"type":80,"value":675},{"type":74,"tag":456,"props":2219,"children":2220},{"style":463},[2221],{"type":80,"value":584},{"type":74,"tag":456,"props":2223,"children":2224},{"style":497},[2225],{"type":80,"value":684},{"type":74,"tag":456,"props":2227,"children":2228},{"style":463},[2229],{"type":80,"value":593},{"type":74,"tag":456,"props":2231,"children":2232},{"style":463},[2233],{"type":80,"value":693},{"type":74,"tag":456,"props":2235,"children":2236},{"class":458,"line":469},[2237],{"type":74,"tag":456,"props":2238,"children":2239},{"emptyLinePlaceholder":699},[2240],{"type":80,"value":702},{"type":74,"tag":456,"props":2242,"children":2243},{"class":458,"line":508},[2244,2248,2252,2256,2260,2264,2268,2272,2276,2280,2285,2289,2293,2297],{"type":74,"tag":456,"props":2245,"children":2246},{"style":542},[2247],{"type":80,"value":545},{"type":74,"tag":456,"props":2249,"children":2250},{"style":542},[2251],{"type":80,"value":715},{"type":74,"tag":456,"props":2253,"children":2254},{"style":478},[2255],{"type":80,"value":720},{"type":74,"tag":456,"props":2257,"children":2258},{"style":723},[2259],{"type":80,"value":726},{"type":74,"tag":456,"props":2261,"children":2262},{"style":463},[2263],{"type":80,"value":731},{"type":74,"tag":456,"props":2265,"children":2266},{"style":734},[2267],{"type":80,"value":737},{"type":74,"tag":456,"props":2269,"children":2270},{"style":463},[2271],{"type":80,"value":443},{"type":74,"tag":456,"props":2273,"children":2274},{"style":744},[2275],{"type":80,"value":747},{"type":74,"tag":456,"props":2277,"children":2278},{"style":463},[2279],{"type":80,"value":598},{"type":74,"tag":456,"props":2281,"children":2282},{"style":734},[2283],{"type":80,"value":2284}," context",{"type":74,"tag":456,"props":2286,"children":2287},{"style":463},[2288],{"type":80,"value":443},{"type":74,"tag":456,"props":2290,"children":2291},{"style":744},[2292],{"type":80,"value":2209},{"type":74,"tag":456,"props":2294,"children":2295},{"style":463},[2296],{"type":80,"value":304},{"type":74,"tag":456,"props":2298,"children":2299},{"style":463},[2300],{"type":80,"value":566},{"type":74,"tag":456,"props":2302,"children":2303},{"class":458,"line":705},[2304,2309,2313,2318],{"type":74,"tag":456,"props":2305,"children":2306},{"style":553},[2307],{"type":80,"value":2308},"  context",{"type":74,"tag":456,"props":2310,"children":2311},{"style":463},[2312],{"type":80,"value":841},{"type":74,"tag":456,"props":2314,"children":2315},{"style":723},[2316],{"type":80,"value":2317},"waitUntil",{"type":74,"tag":456,"props":2319,"children":2320},{"style":572},[2321],{"type":80,"value":2322},"(\n",{"type":74,"tag":456,"props":2324,"children":2325},{"class":458,"line":758},[2326,2331,2335,2339,2344,2348,2352,2356,2361,2365,2369,2374,2378,2382,2387,2391,2396,2400,2404,2408],{"type":74,"tag":456,"props":2327,"children":2328},{"style":723},[2329],{"type":80,"value":2330},"    fetch",{"type":74,"tag":456,"props":2332,"children":2333},{"style":572},[2334],{"type":80,"value":731},{"type":74,"tag":456,"props":2336,"children":2337},{"style":463},[2338],{"type":80,"value":593},{"type":74,"tag":456,"props":2340,"children":2341},{"style":497},[2342],{"type":80,"value":2343},"https:\u002F\u002Fanalytics.example.com\u002Flog",{"type":74,"tag":456,"props":2345,"children":2346},{"style":463},[2347],{"type":80,"value":593},{"type":74,"tag":456,"props":2349,"children":2350},{"style":463},[2351],{"type":80,"value":598},{"type":74,"tag":456,"props":2353,"children":2354},{"style":463},[2355],{"type":80,"value":651},{"type":74,"tag":456,"props":2357,"children":2358},{"style":572},[2359],{"type":80,"value":2360}," method",{"type":74,"tag":456,"props":2362,"children":2363},{"style":463},[2364],{"type":80,"value":443},{"type":74,"tag":456,"props":2366,"children":2367},{"style":463},[2368],{"type":80,"value":584},{"type":74,"tag":456,"props":2370,"children":2371},{"style":497},[2372],{"type":80,"value":2373},"POST",{"type":74,"tag":456,"props":2375,"children":2376},{"style":463},[2377],{"type":80,"value":593},{"type":74,"tag":456,"props":2379,"children":2380},{"style":463},[2381],{"type":80,"value":598},{"type":74,"tag":456,"props":2383,"children":2384},{"style":572},[2385],{"type":80,"value":2386}," body",{"type":74,"tag":456,"props":2388,"children":2389},{"style":463},[2390],{"type":80,"value":443},{"type":74,"tag":456,"props":2392,"children":2393},{"style":553},[2394],{"type":80,"value":2395}," request",{"type":74,"tag":456,"props":2397,"children":2398},{"style":463},[2399],{"type":80,"value":841},{"type":74,"tag":456,"props":2401,"children":2402},{"style":553},[2403],{"type":80,"value":846},{"type":74,"tag":456,"props":2405,"children":2406},{"style":463},[2407],{"type":80,"value":670},{"type":74,"tag":456,"props":2409,"children":2410},{"style":572},[2411],{"type":80,"value":2412},")\n",{"type":74,"tag":456,"props":2414,"children":2415},{"class":458,"line":42},[2416,2421],{"type":74,"tag":456,"props":2417,"children":2418},{"style":572},[2419],{"type":80,"value":2420},"  )",{"type":74,"tag":456,"props":2422,"children":2423},{"style":463},[2424],{"type":80,"value":693},{"type":74,"tag":456,"props":2426,"children":2427},{"class":458,"line":857},[2428,2432,2436,2441,2445,2449,2454,2458,2462],{"type":74,"tag":456,"props":2429,"children":2430},{"style":542},[2431],{"type":80,"value":980},{"type":74,"tag":456,"props":2433,"children":2434},{"style":463},[2435],{"type":80,"value":823},{"type":74,"tag":456,"props":2437,"children":2438},{"style":723},[2439],{"type":80,"value":2440}," Response",{"type":74,"tag":456,"props":2442,"children":2443},{"style":572},[2444],{"type":80,"value":731},{"type":74,"tag":456,"props":2446,"children":2447},{"style":463},[2448],{"type":80,"value":593},{"type":74,"tag":456,"props":2450,"children":2451},{"style":497},[2452],{"type":80,"value":2453},"OK",{"type":74,"tag":456,"props":2455,"children":2456},{"style":463},[2457],{"type":80,"value":593},{"type":74,"tag":456,"props":2459,"children":2460},{"style":572},[2461],{"type":80,"value":304},{"type":74,"tag":456,"props":2463,"children":2464},{"style":463},[2465],{"type":80,"value":693},{"type":74,"tag":456,"props":2467,"children":2468},{"class":458,"line":974},[2469],{"type":74,"tag":456,"props":2470,"children":2471},{"style":463},[2472],{"type":80,"value":514},{"type":74,"tag":89,"props":2474,"children":2476},{"id":2475},"request-limits",[2477],{"type":80,"value":2478},"Request Limits",{"type":74,"tag":193,"props":2480,"children":2481},{},[2482,2498],{"type":74,"tag":197,"props":2483,"children":2484},{},[2485],{"type":74,"tag":201,"props":2486,"children":2487},{},[2488,2493],{"type":74,"tag":205,"props":2489,"children":2490},{},[2491],{"type":80,"value":2492},"Limit",{"type":74,"tag":205,"props":2494,"children":2495},{},[2496],{"type":80,"value":2497},"Value",{"type":74,"tag":230,"props":2499,"children":2500},{},[2501,2514,2527],{"type":74,"tag":201,"props":2502,"children":2503},{},[2504,2509],{"type":74,"tag":237,"props":2505,"children":2506},{},[2507],{"type":80,"value":2508},"Max URL length",{"type":74,"tag":237,"props":2510,"children":2511},{},[2512],{"type":80,"value":2513},"14 KB",{"type":74,"tag":201,"props":2515,"children":2516},{},[2517,2522],{"type":74,"tag":237,"props":2518,"children":2519},{},[2520],{"type":80,"value":2521},"Max request body",{"type":74,"tag":237,"props":2523,"children":2524},{},[2525],{"type":80,"value":2526},"4 MB",{"type":74,"tag":201,"props":2528,"children":2529},{},[2530,2535],{"type":74,"tag":237,"props":2531,"children":2532},{},[2533],{"type":80,"value":2534},"Max request headers",{"type":74,"tag":237,"props":2536,"children":2537},{},[2538],{"type":80,"value":2539},"64 headers \u002F 16 KB total",{"type":74,"tag":89,"props":2541,"children":2543},{"id":2542},"three-cdn-routing-mechanisms",[2544],{"type":80,"value":2545},"Three CDN Routing Mechanisms",{"type":74,"tag":83,"props":2547,"children":2548},{},[2549],{"type":80,"value":2550},"Vercel's CDN supports three routing mechanisms, evaluated in this order:",{"type":74,"tag":193,"props":2552,"children":2553},{},[2554,2584],{"type":74,"tag":197,"props":2555,"children":2556},{},[2557],{"type":74,"tag":201,"props":2558,"children":2559},{},[2560,2565,2570,2574,2579],{"type":74,"tag":205,"props":2561,"children":2562},{},[2563],{"type":80,"value":2564},"Order",{"type":74,"tag":205,"props":2566,"children":2567},{},[2568],{"type":80,"value":2569},"Mechanism",{"type":74,"tag":205,"props":2571,"children":2572},{},[2573],{"type":80,"value":223},{"type":74,"tag":205,"props":2575,"children":2576},{},[2577],{"type":80,"value":2578},"Deploy Required",{"type":74,"tag":205,"props":2580,"children":2581},{},[2582],{"type":80,"value":2583},"How to Configure",{"type":74,"tag":230,"props":2585,"children":2586},{},[2587,2618,2649],{"type":74,"tag":201,"props":2588,"children":2589},{},[2590,2595,2603,2608,2613],{"type":74,"tag":237,"props":2591,"children":2592},{},[2593],{"type":80,"value":2594},"1",{"type":74,"tag":237,"props":2596,"children":2597},{},[2598],{"type":74,"tag":101,"props":2599,"children":2600},{},[2601],{"type":80,"value":2602},"Bulk Redirects",{"type":74,"tag":237,"props":2604,"children":2605},{},[2606],{"type":80,"value":2607},"Up to 1M static path→path redirects",{"type":74,"tag":237,"props":2609,"children":2610},{},[2611],{"type":80,"value":2612},"No (runtime via Dashboard\u002FAPI\u002FCLI)",{"type":74,"tag":237,"props":2614,"children":2615},{},[2616],{"type":80,"value":2617},"Dashboard, CSV upload, REST API",{"type":74,"tag":201,"props":2619,"children":2620},{},[2621,2626,2634,2639,2644],{"type":74,"tag":237,"props":2622,"children":2623},{},[2624],{"type":80,"value":2625},"2",{"type":74,"tag":237,"props":2627,"children":2628},{},[2629],{"type":74,"tag":101,"props":2630,"children":2631},{},[2632],{"type":80,"value":2633},"Project-Level Routes",{"type":74,"tag":237,"props":2635,"children":2636},{},[2637],{"type":80,"value":2638},"Headers, rewrites, redirects",{"type":74,"tag":237,"props":2640,"children":2641},{},[2642],{"type":80,"value":2643},"No (instant publish)",{"type":74,"tag":237,"props":2645,"children":2646},{},[2647],{"type":80,"value":2648},"Dashboard, API, CLI, Vercel SDK",{"type":74,"tag":201,"props":2650,"children":2651},{},[2652,2657,2665,2670,2675],{"type":74,"tag":237,"props":2653,"children":2654},{},[2655],{"type":80,"value":2656},"3",{"type":74,"tag":237,"props":2658,"children":2659},{},[2660],{"type":74,"tag":101,"props":2661,"children":2662},{},[2663],{"type":80,"value":2664},"Deployment Config Routes",{"type":74,"tag":237,"props":2666,"children":2667},{},[2668],{"type":80,"value":2669},"Full routing rules",{"type":74,"tag":237,"props":2671,"children":2672},{},[2673],{"type":80,"value":2674},"Yes (deploy)",{"type":74,"tag":237,"props":2676,"children":2677},{},[2678,2683,2684,2689,2690],{"type":74,"tag":131,"props":2679,"children":2681},{"className":2680},[],[2682],{"type":80,"value":64},{"type":80,"value":1186},{"type":74,"tag":131,"props":2685,"children":2687},{"className":2686},[],[2688],{"type":80,"value":66},{"type":80,"value":1186},{"type":74,"tag":131,"props":2691,"children":2693},{"className":2692},[],[2694],{"type":80,"value":2695},"next.config.ts",{"type":74,"tag":83,"props":2697,"children":2698},{},[2699,2704],{"type":74,"tag":101,"props":2700,"children":2701},{},[2702],{"type":80,"value":2703},"Project-level routes",{"type":80,"value":2705}," (added March 2026) let you update routing rules — response headers, rewrites to external APIs — without triggering a new deployment. They run after bulk redirects and before deployment config routes. Available on all plans.",{"type":74,"tag":1593,"props":2707,"children":2709},{"id":2708},"project-level-routes-configuration-methods",[2710],{"type":80,"value":2711},"Project-Level Routes — Configuration Methods",{"type":74,"tag":83,"props":2713,"children":2714},{},[2715],{"type":80,"value":2716},"Project-level routes take effect instantly (no deploy required). Four ways to manage them:",{"type":74,"tag":193,"props":2718,"children":2719},{},[2720,2736],{"type":74,"tag":197,"props":2721,"children":2722},{},[2723],{"type":74,"tag":201,"props":2724,"children":2725},{},[2726,2731],{"type":74,"tag":205,"props":2727,"children":2728},{},[2729],{"type":80,"value":2730},"Method",{"type":74,"tag":205,"props":2732,"children":2733},{},[2734],{"type":80,"value":2735},"How",{"type":74,"tag":230,"props":2737,"children":2738},{},[2739,2755,2777,2829],{"type":74,"tag":201,"props":2740,"children":2741},{},[2742,2750],{"type":74,"tag":237,"props":2743,"children":2744},{},[2745],{"type":74,"tag":101,"props":2746,"children":2747},{},[2748],{"type":80,"value":2749},"Dashboard",{"type":74,"tag":237,"props":2751,"children":2752},{},[2753],{"type":80,"value":2754},"Project → CDN → Routing tab. Live map of global traffic, cache management, and route editor in one view.",{"type":74,"tag":201,"props":2756,"children":2757},{},[2758,2766],{"type":74,"tag":237,"props":2759,"children":2760},{},[2761],{"type":74,"tag":101,"props":2762,"children":2763},{},[2764],{"type":80,"value":2765},"REST API",{"type":74,"tag":237,"props":2767,"children":2768},{},[2769,2775],{"type":74,"tag":131,"props":2770,"children":2772},{"className":2771},[],[2773],{"type":80,"value":2774},"GET\u002FPOST\u002FPATCH\u002FDELETE \u002Fv1\u002Fprojects\u002F{projectId}\u002Froutes",{"type":80,"value":2776}," — 8 dedicated endpoints for CRUD on project routes.",{"type":74,"tag":201,"props":2778,"children":2779},{},[2780,2788],{"type":74,"tag":237,"props":2781,"children":2782},{},[2783],{"type":74,"tag":101,"props":2784,"children":2785},{},[2786],{"type":80,"value":2787},"Vercel CLI",{"type":74,"tag":237,"props":2789,"children":2790},{},[2791,2793,2798,2800,2806,2808,2814,2815,2821,2822,2828],{"type":80,"value":2792},"Managed via ",{"type":74,"tag":131,"props":2794,"children":2796},{"className":2795},[],[2797],{"type":80,"value":66},{"type":80,"value":2799}," \u002F ",{"type":74,"tag":131,"props":2801,"children":2803},{"className":2802},[],[2804],{"type":80,"value":2805},"@vercel\u002Fconfig",{"type":80,"value":2807}," commands (",{"type":74,"tag":131,"props":2809,"children":2811},{"className":2810},[],[2812],{"type":80,"value":2813},"compile",{"type":80,"value":1186},{"type":74,"tag":131,"props":2816,"children":2818},{"className":2817},[],[2819],{"type":80,"value":2820},"validate",{"type":80,"value":1186},{"type":74,"tag":131,"props":2823,"children":2825},{"className":2824},[],[2826],{"type":80,"value":2827},"generate",{"type":80,"value":1303},{"type":74,"tag":201,"props":2830,"children":2831},{},[2832,2840],{"type":74,"tag":237,"props":2833,"children":2834},{},[2835],{"type":74,"tag":101,"props":2836,"children":2837},{},[2838],{"type":80,"value":2839},"Vercel SDK",{"type":74,"tag":237,"props":2841,"children":2842},{},[2843,2848,2850,2856,2857,2863,2864,2870,2872,2878,2880,2886],{"type":74,"tag":131,"props":2844,"children":2846},{"className":2845},[],[2847],{"type":80,"value":2805},{"type":80,"value":2849}," helpers: ",{"type":74,"tag":131,"props":2851,"children":2853},{"className":2852},[],[2854],{"type":80,"value":2855},"routes.redirect()",{"type":80,"value":1186},{"type":74,"tag":131,"props":2858,"children":2860},{"className":2859},[],[2861],{"type":80,"value":2862},"routes.rewrite()",{"type":80,"value":1186},{"type":74,"tag":131,"props":2865,"children":2867},{"className":2866},[],[2868],{"type":80,"value":2869},"routes.header()",{"type":80,"value":2871},", plus ",{"type":74,"tag":131,"props":2873,"children":2875},{"className":2874},[],[2876],{"type":80,"value":2877},"has",{"type":80,"value":2879},"\u002F",{"type":74,"tag":131,"props":2881,"children":2883},{"className":2882},[],[2884],{"type":80,"value":2885},"missing",{"type":80,"value":2887}," conditions and transforms.",{"type":74,"tag":83,"props":2889,"children":2890},{},[2891],{"type":80,"value":2892},"Use project-level routes for operational changes (CORS headers, API proxy rewrites, A\u002FB redirects) that shouldn't require a full redeploy.",{"type":74,"tag":89,"props":2894,"children":2896},{"id":2895},"programmatic-configuration-with-vercelts",[2897,2899],{"type":80,"value":2898},"Programmatic Configuration with ",{"type":74,"tag":131,"props":2900,"children":2902},{"className":2901},[],[2903],{"type":80,"value":66},{"type":74,"tag":83,"props":2905,"children":2906},{},[2907,2909,2914,2916,2921,2923,2929,2930,2936,2937,2943,2944,2950,2952,2957],{"type":80,"value":2908},"Instead of static ",{"type":74,"tag":131,"props":2910,"children":2912},{"className":2911},[],[2913],{"type":80,"value":64},{"type":80,"value":2915},", you can use ",{"type":74,"tag":131,"props":2917,"children":2919},{"className":2918},[],[2920],{"type":80,"value":66},{"type":80,"value":2922}," (or ",{"type":74,"tag":131,"props":2924,"children":2926},{"className":2925},[],[2927],{"type":80,"value":2928},".js",{"type":80,"value":1186},{"type":74,"tag":131,"props":2931,"children":2933},{"className":2932},[],[2934],{"type":80,"value":2935},".mjs",{"type":80,"value":1186},{"type":74,"tag":131,"props":2938,"children":2940},{"className":2939},[],[2941],{"type":80,"value":2942},".cjs",{"type":80,"value":1186},{"type":74,"tag":131,"props":2945,"children":2947},{"className":2946},[],[2948],{"type":80,"value":2949},".mts",{"type":80,"value":2951},") with the ",{"type":74,"tag":131,"props":2953,"children":2955},{"className":2954},[],[2956],{"type":80,"value":2805},{"type":80,"value":2958}," package for type-safe, dynamic routing configuration:",{"type":74,"tag":445,"props":2960,"children":2962},{"className":530,"code":2961,"language":532,"meta":450,"style":450},"\u002F\u002F vercel.ts\nimport { defineConfig } from '@vercel\u002Fconfig';\n\nexport default defineConfig({\n  rewrites: [\n    { source: '\u002Fapi\u002F:path*', destination: 'https:\u002F\u002Fbackend.example.com\u002F:path*' },\n  ],\n  headers: [\n    { source: '\u002F(.*)', headers: [{ key: 'X-Frame-Options', value: 'DENY' }] },\n  ],\n});\n",[2963],{"type":74,"tag":131,"props":2964,"children":2965},{"__ignoreMap":450},[2966,2974,3014,3021,3044,3061,3121,3133,3149,3258,3269],{"type":74,"tag":456,"props":2967,"children":2968},{"class":458,"line":459},[2969],{"type":74,"tag":456,"props":2970,"children":2971},{"style":601},[2972],{"type":80,"value":2973},"\u002F\u002F vercel.ts\n",{"type":74,"tag":456,"props":2975,"children":2976},{"class":458,"line":469},[2977,2981,2985,2990,2994,2998,3002,3006,3010],{"type":74,"tag":456,"props":2978,"children":2979},{"style":542},[2980],{"type":80,"value":646},{"type":74,"tag":456,"props":2982,"children":2983},{"style":463},[2984],{"type":80,"value":651},{"type":74,"tag":456,"props":2986,"children":2987},{"style":553},[2988],{"type":80,"value":2989}," defineConfig",{"type":74,"tag":456,"props":2991,"children":2992},{"style":463},[2993],{"type":80,"value":670},{"type":74,"tag":456,"props":2995,"children":2996},{"style":542},[2997],{"type":80,"value":675},{"type":74,"tag":456,"props":2999,"children":3000},{"style":463},[3001],{"type":80,"value":584},{"type":74,"tag":456,"props":3003,"children":3004},{"style":497},[3005],{"type":80,"value":2805},{"type":74,"tag":456,"props":3007,"children":3008},{"style":463},[3009],{"type":80,"value":593},{"type":74,"tag":456,"props":3011,"children":3012},{"style":463},[3013],{"type":80,"value":693},{"type":74,"tag":456,"props":3015,"children":3016},{"class":458,"line":508},[3017],{"type":74,"tag":456,"props":3018,"children":3019},{"emptyLinePlaceholder":699},[3020],{"type":80,"value":702},{"type":74,"tag":456,"props":3022,"children":3023},{"class":458,"line":705},[3024,3028,3032,3036,3040],{"type":74,"tag":456,"props":3025,"children":3026},{"style":542},[3027],{"type":80,"value":545},{"type":74,"tag":456,"props":3029,"children":3030},{"style":542},[3031],{"type":80,"value":715},{"type":74,"tag":456,"props":3033,"children":3034},{"style":723},[3035],{"type":80,"value":2989},{"type":74,"tag":456,"props":3037,"children":3038},{"style":553},[3039],{"type":80,"value":731},{"type":74,"tag":456,"props":3041,"children":3042},{"style":463},[3043],{"type":80,"value":466},{"type":74,"tag":456,"props":3045,"children":3046},{"class":458,"line":758},[3047,3052,3056],{"type":74,"tag":456,"props":3048,"children":3049},{"style":572},[3050],{"type":80,"value":3051},"  rewrites",{"type":74,"tag":456,"props":3053,"children":3054},{"style":463},[3055],{"type":80,"value":443},{"type":74,"tag":456,"props":3057,"children":3058},{"style":553},[3059],{"type":80,"value":3060}," [\n",{"type":74,"tag":456,"props":3062,"children":3063},{"class":458,"line":42},[3064,3069,3074,3078,3082,3086,3090,3094,3099,3103,3107,3112,3116],{"type":74,"tag":456,"props":3065,"children":3066},{"style":463},[3067],{"type":80,"value":3068},"    {",{"type":74,"tag":456,"props":3070,"children":3071},{"style":572},[3072],{"type":80,"value":3073}," source",{"type":74,"tag":456,"props":3075,"children":3076},{"style":463},[3077],{"type":80,"value":443},{"type":74,"tag":456,"props":3079,"children":3080},{"style":463},[3081],{"type":80,"value":584},{"type":74,"tag":456,"props":3083,"children":3084},{"style":497},[3085],{"type":80,"value":1470},{"type":74,"tag":456,"props":3087,"children":3088},{"style":463},[3089],{"type":80,"value":593},{"type":74,"tag":456,"props":3091,"children":3092},{"style":463},[3093],{"type":80,"value":598},{"type":74,"tag":456,"props":3095,"children":3096},{"style":572},[3097],{"type":80,"value":3098}," destination",{"type":74,"tag":456,"props":3100,"children":3101},{"style":463},[3102],{"type":80,"value":443},{"type":74,"tag":456,"props":3104,"children":3105},{"style":463},[3106],{"type":80,"value":584},{"type":74,"tag":456,"props":3108,"children":3109},{"style":497},[3110],{"type":80,"value":3111},"https:\u002F\u002Fbackend.example.com\u002F:path*",{"type":74,"tag":456,"props":3113,"children":3114},{"style":463},[3115],{"type":80,"value":593},{"type":74,"tag":456,"props":3117,"children":3118},{"style":463},[3119],{"type":80,"value":3120}," },\n",{"type":74,"tag":456,"props":3122,"children":3123},{"class":458,"line":857},[3124,3129],{"type":74,"tag":456,"props":3125,"children":3126},{"style":553},[3127],{"type":80,"value":3128},"  ]",{"type":74,"tag":456,"props":3130,"children":3131},{"style":463},[3132],{"type":80,"value":1560},{"type":74,"tag":456,"props":3134,"children":3135},{"class":458,"line":974},[3136,3141,3145],{"type":74,"tag":456,"props":3137,"children":3138},{"style":572},[3139],{"type":80,"value":3140},"  headers",{"type":74,"tag":456,"props":3142,"children":3143},{"style":463},[3144],{"type":80,"value":443},{"type":74,"tag":456,"props":3146,"children":3147},{"style":553},[3148],{"type":80,"value":3060},{"type":74,"tag":456,"props":3150,"children":3151},{"class":458,"line":1003},[3152,3156,3160,3164,3168,3173,3177,3181,3185,3189,3193,3197,3202,3206,3210,3215,3219,3223,3228,3232,3236,3241,3245,3249,3253],{"type":74,"tag":456,"props":3153,"children":3154},{"style":463},[3155],{"type":80,"value":3068},{"type":74,"tag":456,"props":3157,"children":3158},{"style":572},[3159],{"type":80,"value":3073},{"type":74,"tag":456,"props":3161,"children":3162},{"style":463},[3163],{"type":80,"value":443},{"type":74,"tag":456,"props":3165,"children":3166},{"style":463},[3167],{"type":80,"value":584},{"type":74,"tag":456,"props":3169,"children":3170},{"style":497},[3171],{"type":80,"value":3172},"\u002F(.*)",{"type":74,"tag":456,"props":3174,"children":3175},{"style":463},[3176],{"type":80,"value":593},{"type":74,"tag":456,"props":3178,"children":3179},{"style":463},[3180],{"type":80,"value":598},{"type":74,"tag":456,"props":3182,"children":3183},{"style":572},[3184],{"type":80,"value":1729},{"type":74,"tag":456,"props":3186,"children":3187},{"style":463},[3188],{"type":80,"value":443},{"type":74,"tag":456,"props":3190,"children":3191},{"style":553},[3192],{"type":80,"value":1445},{"type":74,"tag":456,"props":3194,"children":3195},{"style":463},[3196],{"type":80,"value":1724},{"type":74,"tag":456,"props":3198,"children":3199},{"style":572},[3200],{"type":80,"value":3201}," key",{"type":74,"tag":456,"props":3203,"children":3204},{"style":463},[3205],{"type":80,"value":443},{"type":74,"tag":456,"props":3207,"children":3208},{"style":463},[3209],{"type":80,"value":584},{"type":74,"tag":456,"props":3211,"children":3212},{"style":497},[3213],{"type":80,"value":3214},"X-Frame-Options",{"type":74,"tag":456,"props":3216,"children":3217},{"style":463},[3218],{"type":80,"value":593},{"type":74,"tag":456,"props":3220,"children":3221},{"style":463},[3222],{"type":80,"value":598},{"type":74,"tag":456,"props":3224,"children":3225},{"style":572},[3226],{"type":80,"value":3227}," value",{"type":74,"tag":456,"props":3229,"children":3230},{"style":463},[3231],{"type":80,"value":443},{"type":74,"tag":456,"props":3233,"children":3234},{"style":463},[3235],{"type":80,"value":584},{"type":74,"tag":456,"props":3237,"children":3238},{"style":497},[3239],{"type":80,"value":3240},"DENY",{"type":74,"tag":456,"props":3242,"children":3243},{"style":463},[3244],{"type":80,"value":593},{"type":74,"tag":456,"props":3246,"children":3247},{"style":463},[3248],{"type":80,"value":670},{"type":74,"tag":456,"props":3250,"children":3251},{"style":553},[3252],{"type":80,"value":1479},{"type":74,"tag":456,"props":3254,"children":3255},{"style":463},[3256],{"type":80,"value":3257},"},\n",{"type":74,"tag":456,"props":3259,"children":3260},{"class":458,"line":1011},[3261,3265],{"type":74,"tag":456,"props":3262,"children":3263},{"style":553},[3264],{"type":80,"value":3128},{"type":74,"tag":456,"props":3266,"children":3267},{"style":463},[3268],{"type":80,"value":1560},{"type":74,"tag":456,"props":3270,"children":3271},{"class":458,"line":1019},[3272,3277,3281],{"type":74,"tag":456,"props":3273,"children":3274},{"style":463},[3275],{"type":80,"value":3276},"}",{"type":74,"tag":456,"props":3278,"children":3279},{"style":553},[3280],{"type":80,"value":304},{"type":74,"tag":456,"props":3282,"children":3283},{"style":463},[3284],{"type":80,"value":693},{"type":74,"tag":83,"props":3286,"children":3287},{},[3288],{"type":80,"value":3289},"CLI commands:",{"type":74,"tag":116,"props":3291,"children":3292},{},[3293,3304,3315],{"type":74,"tag":120,"props":3294,"children":3295},{},[3296,3302],{"type":74,"tag":131,"props":3297,"children":3299},{"className":3298},[],[3300],{"type":80,"value":3301},"npx @vercel\u002Fconfig compile",{"type":80,"value":3303}," — compile to JSON (stdout)",{"type":74,"tag":120,"props":3305,"children":3306},{},[3307,3313],{"type":74,"tag":131,"props":3308,"children":3310},{"className":3309},[],[3311],{"type":80,"value":3312},"npx @vercel\u002Fconfig validate",{"type":80,"value":3314}," — validate and show summary",{"type":74,"tag":120,"props":3316,"children":3317},{},[3318,3324,3326,3331],{"type":74,"tag":131,"props":3319,"children":3321},{"className":3320},[],[3322],{"type":80,"value":3323},"npx @vercel\u002Fconfig generate",{"type":80,"value":3325}," — generate ",{"type":74,"tag":131,"props":3327,"children":3329},{"className":3328},[],[3330],{"type":80,"value":64},{"type":80,"value":3332}," locally for development",{"type":74,"tag":83,"props":3334,"children":3335},{},[3336,3341,3343,3348,3349,3354],{"type":74,"tag":101,"props":3337,"children":3338},{},[3339],{"type":80,"value":3340},"Constraint",{"type":80,"value":3342},": Only one config file per project — ",{"type":74,"tag":131,"props":3344,"children":3346},{"className":3345},[],[3347],{"type":80,"value":64},{"type":80,"value":137},{"type":74,"tag":131,"props":3350,"children":3352},{"className":3351},[],[3353],{"type":80,"value":66},{"type":80,"value":3355},", not both.",{"type":74,"tag":89,"props":3357,"children":3359},{"id":3358},"when-to-use",[3360],{"type":80,"value":228},{"type":74,"tag":116,"props":3362,"children":3363},{},[3364,3369,3374,3379,3384,3389],{"type":74,"tag":120,"props":3365,"children":3366},{},[3367],{"type":80,"value":3368},"Geo-personalization of static pages (runs before cache)",{"type":74,"tag":120,"props":3370,"children":3371},{},[3372],{"type":80,"value":3373},"A\u002FB testing rewrites with Edge Config",{"type":74,"tag":120,"props":3375,"children":3376},{},[3377],{"type":80,"value":3378},"Custom redirects based on request properties",{"type":74,"tag":120,"props":3380,"children":3381},{},[3382],{"type":80,"value":3383},"Header injection (CSP, CORS, custom headers)",{"type":74,"tag":120,"props":3385,"children":3386},{},[3387],{"type":80,"value":3388},"Lightweight auth checks (defense-in-depth only — not sole auth layer)",{"type":74,"tag":120,"props":3390,"children":3391},{},[3392],{"type":80,"value":3393},"Project-level routes for headers\u002Frewrites without redeploying",{"type":74,"tag":89,"props":3395,"children":3397},{"id":3396},"when-not-to-use",[3398],{"type":80,"value":3399},"When NOT to Use",{"type":74,"tag":116,"props":3401,"children":3402},{},[3403,3413,3418,3423,3428],{"type":74,"tag":120,"props":3404,"children":3405},{},[3406,3408],{"type":80,"value":3407},"Need full Node.js APIs in Next.js → use ",{"type":74,"tag":131,"props":3409,"children":3411},{"className":3410},[],[3412],{"type":80,"value":52},{"type":74,"tag":120,"props":3414,"children":3415},{},[3416],{"type":80,"value":3417},"General compute at the edge → use Edge Functions",{"type":74,"tag":120,"props":3419,"children":3420},{},[3421],{"type":80,"value":3422},"Heavy business logic or database queries → use server-side framework features",{"type":74,"tag":120,"props":3424,"children":3425},{},[3426],{"type":80,"value":3427},"Auth as sole protection → use Layouts, Server Components, or Route Handlers",{"type":74,"tag":120,"props":3429,"children":3430},{},[3431],{"type":80,"value":3432},"Thousands of static redirects → use Bulk Redirects (up to 1M per project)",{"type":74,"tag":89,"props":3434,"children":3436},{"id":3435},"references",[3437],{"type":80,"value":3438},"References",{"type":74,"tag":116,"props":3440,"children":3441},{},[3442,3454,3465],{"type":74,"tag":120,"props":3443,"children":3444},{},[3445,3447],{"type":80,"value":3446},"📖 docs: ",{"type":74,"tag":3448,"props":3449,"children":3452},"a",{"href":45,"rel":3450},[3451],"nofollow",[3453],{"type":80,"value":45},{"type":74,"tag":120,"props":3455,"children":3456},{},[3457,3459],{"type":80,"value":3458},"📖 API reference: ",{"type":74,"tag":3448,"props":3460,"children":3463},{"href":3461,"rel":3462},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\u002Fapi",[3451],[3464],{"type":80,"value":3461},{"type":74,"tag":120,"props":3466,"children":3467},{},[3468,3470],{"type":80,"value":3469},"📖 getting started: ",{"type":74,"tag":3448,"props":3471,"children":3474},{"href":3472,"rel":3473},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Frouting-middleware\u002Fgetting-started",[3451],[3475],{"type":80,"value":3472},{"type":74,"tag":3477,"props":3478,"children":3479},"style",{},[3480],{"type":80,"value":3481},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":3483,"total":3601},[3484,3503,3519,3531,3551,3569,3589],{"slug":3485,"name":3485,"fn":3486,"description":3487,"org":3488,"tags":3489,"stars":28,"repoUrl":29,"updatedAt":3502},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3490,3493,3496,3499],{"name":3491,"slug":3492,"type":15},"Accessibility","accessibility",{"name":3494,"slug":3495,"type":15},"Charts","charts",{"name":3497,"slug":3498,"type":15},"Data Visualization","data-visualization",{"name":3500,"slug":3501,"type":15},"Design","design","2026-06-30T19:00:57.102",{"slug":3504,"name":3504,"fn":3505,"description":3506,"org":3507,"tags":3508,"stars":28,"repoUrl":29,"updatedAt":3518},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3509,3512,3515],{"name":3510,"slug":3511,"type":15},"Agents","agents",{"name":3513,"slug":3514,"type":15},"Browser Automation","browser-automation",{"name":3516,"slug":3517,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":3520,"name":3520,"fn":3521,"description":3522,"org":3523,"tags":3524,"stars":28,"repoUrl":29,"updatedAt":3530},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3525,3526,3529],{"name":3513,"slug":3514,"type":15},{"name":3527,"slug":3528,"type":15},"Local Development","local-development",{"name":3516,"slug":3517,"type":15},"2026-04-06T18:41:17.526867",{"slug":3532,"name":3532,"fn":3533,"description":3534,"org":3535,"tags":3536,"stars":28,"repoUrl":29,"updatedAt":3550},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3537,3538,3541,3544,3547],{"name":3510,"slug":3511,"type":15},{"name":3539,"slug":3540,"type":15},"Cloudflare Workers","cloudflare-workers",{"name":3542,"slug":3543,"type":15},"SDK","sdk",{"name":3545,"slug":3546,"type":15},"Serverless","serverless",{"name":3548,"slug":3549,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":3552,"name":3552,"fn":3553,"description":3554,"org":3555,"tags":3556,"stars":28,"repoUrl":29,"updatedAt":3568},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3557,3558,3561,3564,3567],{"name":26,"slug":27,"type":15},{"name":3559,"slug":3560,"type":15},"React","react",{"name":3562,"slug":3563,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":3565,"slug":3566,"type":15},"UI Components","ui-components",{"name":13,"slug":14,"type":15},"2026-04-06T18:40:59.619419",{"slug":3570,"name":3570,"fn":3571,"description":3572,"org":3573,"tags":3574,"stars":28,"repoUrl":29,"updatedAt":3588},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3575,3578,3581,3584,3587],{"name":3576,"slug":3577,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3579,"slug":3580,"type":15},"Cost Optimization","cost-optimization",{"name":3582,"slug":3583,"type":15},"LLM","llm",{"name":3585,"slug":3586,"type":15},"Performance","performance",{"name":13,"slug":14,"type":15},"2026-04-06T18:40:44.377464",{"slug":3590,"name":3590,"fn":3591,"description":3592,"org":3593,"tags":3594,"stars":28,"repoUrl":29,"updatedAt":3600},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3595,3596,3599],{"name":3579,"slug":3580,"type":15},{"name":3597,"slug":3598,"type":15},"Database","database",{"name":3582,"slug":3583,"type":15},"2026-04-06T18:41:08.513425",600,{"items":3603,"total":3798},[3604,3625,3648,3665,3681,3696,3715,3727,3741,3755,3767,3782],{"slug":3605,"name":3605,"fn":3606,"description":3607,"org":3608,"tags":3609,"stars":3622,"repoUrl":3623,"updatedAt":3624},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3610,3613,3616,3619],{"name":3611,"slug":3612,"type":15},"Documents","documents",{"name":3614,"slug":3615,"type":15},"Healthcare","healthcare",{"name":3617,"slug":3618,"type":15},"Insurance","insurance",{"name":3620,"slug":3621,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":3626,"name":3626,"fn":3627,"description":3628,"org":3629,"tags":3630,"stars":3645,"repoUrl":3646,"updatedAt":3647},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3631,3634,3636,3639,3642],{"name":3632,"slug":3633,"type":15},".NET","dotnet",{"name":3635,"slug":3626,"type":15},"ASP.NET Core",{"name":3637,"slug":3638,"type":15},"Blazor","blazor",{"name":3640,"slug":3641,"type":15},"C#","csharp",{"name":3643,"slug":3644,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":3649,"name":3649,"fn":3650,"description":3651,"org":3652,"tags":3653,"stars":3645,"repoUrl":3646,"updatedAt":3664},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3654,3657,3660,3663],{"name":3655,"slug":3656,"type":15},"Apps SDK","apps-sdk",{"name":3658,"slug":3659,"type":15},"ChatGPT","chatgpt",{"name":3661,"slug":3662,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":3666,"name":3666,"fn":3667,"description":3668,"org":3669,"tags":3670,"stars":3645,"repoUrl":3646,"updatedAt":3680},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3671,3674,3677],{"name":3672,"slug":3673,"type":15},"API Development","api-development",{"name":3675,"slug":3676,"type":15},"CLI","cli",{"name":3678,"slug":3679,"type":15},"Codex","codex","2026-04-12T05:07:04.132762",{"slug":3682,"name":3682,"fn":3683,"description":3684,"org":3685,"tags":3686,"stars":3645,"repoUrl":3646,"updatedAt":3695},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3687,3690,3693,3694],{"name":3688,"slug":3689,"type":15},"Cloudflare","cloudflare",{"name":3691,"slug":3692,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":3539,"slug":3540,"type":15},{"name":20,"slug":21,"type":15},"2026-04-12T05:07:14.275118",{"slug":3697,"name":3697,"fn":3698,"description":3699,"org":3700,"tags":3701,"stars":3645,"repoUrl":3646,"updatedAt":3714},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3702,3705,3708,3711],{"name":3703,"slug":3704,"type":15},"Productivity","productivity",{"name":3706,"slug":3707,"type":15},"Project Management","project-management",{"name":3709,"slug":3710,"type":15},"Strategy","strategy",{"name":3712,"slug":3713,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":3716,"name":3716,"fn":3717,"description":3718,"org":3719,"tags":3720,"stars":3645,"repoUrl":3646,"updatedAt":3726},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3721,3722,3724,3725],{"name":3500,"slug":3501,"type":15},{"name":3723,"slug":3716,"type":15},"Figma",{"name":26,"slug":27,"type":15},{"name":3661,"slug":3662,"type":15},"2026-04-12T05:06:47.939943",{"slug":3728,"name":3728,"fn":3729,"description":3730,"org":3731,"tags":3732,"stars":3645,"repoUrl":3646,"updatedAt":3740},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3733,3734,3737,3738,3739],{"name":3500,"slug":3501,"type":15},{"name":3735,"slug":3736,"type":15},"Design System","design-system",{"name":3723,"slug":3716,"type":15},{"name":26,"slug":27,"type":15},{"name":3565,"slug":3566,"type":15},"2026-05-10T05:59:52.971881",{"slug":3742,"name":3742,"fn":3743,"description":3744,"org":3745,"tags":3746,"stars":3645,"repoUrl":3646,"updatedAt":3754},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3747,3748,3749,3752,3753],{"name":3500,"slug":3501,"type":15},{"name":3735,"slug":3736,"type":15},{"name":3750,"slug":3751,"type":15},"Documentation","documentation",{"name":3723,"slug":3716,"type":15},{"name":26,"slug":27,"type":15},"2026-05-16T06:07:47.821474",{"slug":3756,"name":3756,"fn":3757,"description":3758,"org":3759,"tags":3760,"stars":3645,"repoUrl":3646,"updatedAt":3766},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3761,3762,3763,3764,3765],{"name":3500,"slug":3501,"type":15},{"name":3723,"slug":3716,"type":15},{"name":26,"slug":27,"type":15},{"name":3565,"slug":3566,"type":15},{"name":3643,"slug":3644,"type":15},"2026-05-16T06:07:40.583615",{"slug":3768,"name":3768,"fn":3769,"description":3770,"org":3771,"tags":3772,"stars":3645,"repoUrl":3646,"updatedAt":3781},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3773,3776,3777,3780],{"name":3774,"slug":3775,"type":15},"Animation","animation",{"name":3678,"slug":3679,"type":15},{"name":3778,"slug":3779,"type":15},"Creative","creative",{"name":3500,"slug":3501,"type":15},"2026-05-02T05:31:48.48485",{"slug":3783,"name":3783,"fn":3784,"description":3785,"org":3786,"tags":3787,"stars":3645,"repoUrl":3646,"updatedAt":3797},"imagegen","generate and edit raster images","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3788,3789,3790,3793,3796],{"name":3778,"slug":3779,"type":15},{"name":3500,"slug":3501,"type":15},{"name":3791,"slug":3792,"type":15},"Image Generation","image-generation",{"name":3794,"slug":3795,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675]