[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-vercel-runtime-cache":3,"mdc--qvlgwv-key":34,"related-repo-vercel-runtime-cache":3423,"related-org-vercel-runtime-cache":3534},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":29,"sourceUrl":32,"mdContent":33},"runtime-cache","implement caching with Vercel Runtime Cache","Vercel Runtime Cache API guidance — ephemeral per-region key-value cache with tag-based invalidation. Shared across Functions, Routing Middleware, and Builds. Use when implementing caching strategies beyond framework-level caching.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"vercel","Vercel","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fvercel.png",[12,16,17,20],{"name":13,"slug":14,"type":15},"Performance","performance","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"Backend","backend",{"name":21,"slug":22,"type":15},"Caching","caching",226,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin","2026-04-06T18:56:19.54198",null,36,[],{"repoUrl":24,"stars":23,"forks":27,"topics":30,"description":31},[],"Comprehensive Vercel ecosystem plugin — relational knowledge graph, skills for every major product, specialized agents, and Vercel conventions. Turns any AI agent into a Vercel expert.","https:\u002F\u002Fgithub.com\u002Fvercel\u002Fvercel-plugin\u002Ftree\u002FHEAD\u002Fskills\u002Fruntime-cache","---\nname: runtime-cache\ndescription: Vercel Runtime Cache API guidance — ephemeral per-region key-value cache with tag-based invalidation. Shared across Functions, Routing Middleware, and Builds. Use when implementing caching strategies beyond framework-level caching.\nmetadata:\n  priority: 6\n  docs:\n    - \"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fcaching\"\n  sitemap: \"https:\u002F\u002Fnextjs.org\u002Fsitemap.xml\"\n  pathPatterns: \n    - 'lib\u002Fcache\u002F**'\n    - 'src\u002Flib\u002Fcache\u002F**'\n    - 'lib\u002Fcache.*'\n    - 'src\u002Flib\u002Fcache.*'\n  bashPatterns:\n    - '\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b'\n    - '\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b'\n    - '\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b'\n    - '\\byarn\\s+add\\s+[^\\n]*@vercel\u002Ffunctions\\b'\nvalidate:\n  -\n    pattern: 'from\\s+[''\"\"](redis|ioredis)[''\"\"]|require\\s*\\(\\s*[''\"\"](redis|ioredis)[''\"\"]|new\\s+Redis\\('\n    message: 'Direct Redis\u002Fioredis client detected. Use Upstash Redis (@upstash\u002Fredis) for serverless-native Redis with HTTP-based connections.'\n    severity: recommended\n    upgradeToSkill: vercel-storage\n    upgradeWhy: 'Replace direct Redis\u002Fioredis with @upstash\u002Fredis for serverless-compatible HTTP-based Redis that works without persistent TCP connections.'\n    skipIfFileContains: 'from\\s+[''\"\"]\\@upstash\u002Fredis[''\"\"]'\nretrieval:\n  aliases:\n    - cache api\n    - kv cache\n    - region cache\n    - tag invalidation\n  intents:\n    - add caching\n    - cache api response\n    - invalidate cache\n    - set up runtime cache\n  entities:\n    - Runtime Cache\n    - tag-based invalidation\n    - key-value\n    - cache\nchainTo:\n  -\n    pattern: 'from\\s+[''\"\"]@vercel\u002Fkv[''\"\"]'\n    targetSkill: vercel-storage\n    message: '@vercel\u002Fkv is sunset — loading Vercel Storage guidance for Upstash Redis migration.'\n  -\n    pattern: 'from\\s+[''\"\"]ioredis[''\"\"]|new\\s+Redis\\('\n    targetSkill: vercel-storage\n    message: 'Direct Redis client detected — loading Vercel Storage guidance for Upstash Redis (serverless-native) integration.'\n\n---\n\n# Vercel Runtime Cache API\n\nYou are an expert in the Vercel Runtime Cache — an ephemeral caching layer for serverless compute.\n\n## What It Is\n\nThe Runtime Cache is a **per-region key-value store** accessible from Vercel Functions, Routing Middleware, and Builds. It supports **tag-based invalidation** for granular cache control.\n\n- **Regional**: Each Vercel region has its own isolated cache\n- **Isolated**: Scoped per project AND per deployment environment (`preview` vs `production`)\n- **Persistent across deployments**: Cached data survives new deploys; invalidation via TTL or `expireTag`\n- **Ephemeral**: Fixed storage limit per project; LRU eviction when full\n- **Framework-agnostic**: Works with any framework via `@vercel\u002Ffunctions`\n\n## Key APIs\n\nAll APIs from `@vercel\u002Ffunctions`:\n\n### Basic Cache Operations\n\n```ts\nimport { getCache } from '@vercel\u002Ffunctions';\n\nconst cache = getCache();\n\n\u002F\u002F Store data with TTL and tags\nawait cache.set('user:123', userData, {\n  ttl: 3600,                      \u002F\u002F seconds\n  tags: ['users', 'user:123'],    \u002F\u002F for bulk invalidation\n  name: 'user-profile',           \u002F\u002F human-readable label for observability\n});\n\n\u002F\u002F Retrieve cached data (returns value or undefined)\nconst data = await cache.get('user:123');\n\n\u002F\u002F Delete a specific key\nawait cache.delete('user:123');\n\n\u002F\u002F Expire all entries with a tag (propagates globally within 300ms)\nawait cache.expireTag('users');\nawait cache.expireTag(['users', 'user:123']); \u002F\u002F multiple tags\n```\n\n### Cache Options\n\n```ts\nconst cache = getCache({\n  namespace: 'api',                    \u002F\u002F prefix for keys\n  namespaceSeparator: ':',             \u002F\u002F separator (default)\n  keyHashFunction: (key) => sha256(key), \u002F\u002F custom key hashing\n});\n```\n\n### Full Example (Framework-Agnostic)\n\n```ts\nimport { getCache } from '@vercel\u002Ffunctions';\n\nexport default {\n  async fetch(request: Request) {\n    const cache = getCache();\n    const cached = await cache.get('blog-posts');\n\n    if (cached) {\n      return Response.json(cached);\n    }\n\n    const posts = await fetch('https:\u002F\u002Fapi.example.com\u002Fposts').then(r => r.json());\n\n    await cache.set('blog-posts', posts, {\n      ttl: 3600,\n      tags: ['blog'],\n    });\n\n    return Response.json(posts);\n  },\n};\n```\n\n### Tag Expiration from Server Action\n\n```ts\n'use server';\nimport { getCache } from '@vercel\u002Ffunctions';\n\nexport async function invalidateBlog() {\n  await getCache().expireTag('blog');\n}\n```\n\n## CDN Cache Purging Functions\n\nThese purge across **all three cache layers** (CDN + Runtime Cache + Data Cache):\n\n```ts\nimport { invalidateByTag, dangerouslyDeleteByTag } from '@vercel\u002Ffunctions';\n\n\u002F\u002F Stale-while-revalidate: serves stale, revalidates in background\nawait invalidateByTag('blog-posts');\n\n\u002F\u002F Hard delete: next request blocks while fetching from origin (cache stampede risk)\nawait dangerouslyDeleteByTag('blog-posts', {\n  revalidationDeadlineSeconds: 3600,\n});\n```\n\n**Important distinction**:\n- `cache.expireTag()` — operates on Runtime Cache only\n- `invalidateByTag()` \u002F `dangerouslyDeleteByTag()` — purges CDN + Runtime + Data caches\n\n## Next.js Integration\n\n### Next.js 16+ (`use cache: remote`)\n\n```ts\n\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = { cacheComponents: true };\n```\n\n```ts\nimport { cacheLife, cacheTag } from 'next\u002Fcache';\n\nasync function getData() {\n  'use cache: remote'     \u002F\u002F stores in Vercel Runtime Cache\n  cacheTag('example-tag')\n  cacheLife({ expire: 3600 })\n  return fetch('https:\u002F\u002Fapi.example.com\u002Fdata').then(r => r.json());\n}\n```\n\n- `'use cache'` (no `: remote`) — in-memory only, ephemeral per instance\n- `'use cache: remote'` — stores in Vercel Runtime Cache\n\n### Next.js 16 Invalidation APIs\n\n| Function | Context | Behavior |\n|----------|---------|----------|\n| `updateTag(tag)` | Server Actions only | Immediate expiration, read-your-own-writes |\n| `revalidateTag(tag, 'max')` | Server Actions + Route Handlers | Stale-while-revalidate (recommended) |\n| `revalidateTag(tag, { expire: 0 })` | Route Handlers (webhooks) | Immediate expiration from external triggers |\n\n**Important**: Single-argument `revalidateTag(tag)` is deprecated in Next.js 16. Always pass a `cacheLife` profile as the second argument.\n\n### Runtime Cache vs ISR Isolation\n\n- Runtime Cache tags do **NOT** apply to ISR pages\n- `cache.expireTag` does **NOT** invalidate ISR cache\n- Next.js `revalidatePath` \u002F `revalidateTag` does **NOT** invalidate Runtime Cache\n- To manage both, use same tag and purge via `invalidateByTag` (hits all cache layers)\n\n## CLI Cache Commands\n\n```bash\n# Purge all cached data\nvercel cache purge                    # CDN + Data cache\nvercel cache purge --type cdn         # CDN only\nvercel cache purge --type data        # Data cache only\nvercel cache purge --yes              # skip confirmation\n\n# Invalidate by tag (stale-while-revalidate)\nvercel cache invalidate --tag blog-posts,user-profiles\n\n# Hard delete by tag (blocks until revalidated)\nvercel cache dangerously-delete --tag blog-posts\nvercel cache dangerously-delete --tag blog-posts --revalidation-deadline-seconds 3600\n\n# Image invalidation\nvercel cache invalidate --srcimg \u002Fimages\u002Fhero.jpg\n```\n\nNote: `--tag` and `--srcimg` cannot be used together.\n\n## CDN Cache Tags\n\nAdd tags to CDN cached responses for later invalidation:\n\n```ts\nimport { addCacheTag } from '@vercel\u002Ffunctions';\n\n\u002F\u002F Via helper\naddCacheTag('product-123');\n\n\u002F\u002F Via response header\nreturn Response.json(product, {\n  headers: {\n    'Vercel-CDN-Cache-Control': 'public, max-age=86400',\n    'Vercel-Cache-Tag': 'product-123,products',\n  },\n});\n```\n\n## Limits\n\n| Property | Limit |\n|----------|-------|\n| Item size | 2 MB |\n| Tags per Runtime Cache item | 64 |\n| Tags per CDN item | 128 |\n| Max tag length | 256 bytes |\n| Tags per bulk REST API call | 16 |\n\nTags are **case-sensitive** and **cannot contain commas**.\n\n## Observability\n\nMonitor hit rates, invalidation patterns, and storage usage in the Vercel Dashboard under **Observability → Runtime Cache**. The CDN dashboard (March 5, 2026) provides a unified view of global traffic distribution, cache performance metrics, a redesigned purging interface, and **project-level routing** — update response headers or rewrite to external APIs without triggering a new deployment. Project-level routes are available on all plans and take effect instantly.\n\n## When to Use\n\n- Caching API responses or computed data across functions in a region\n- Tag-based invalidation when content changes (CMS webhook → expire tag)\n- Reducing database load for frequently accessed data\n- Cross-function data sharing within a region\n\n## When NOT to Use\n\n- Framework-level page caching → use Next.js Cache Components (`'use cache'`)\n- Persistent storage → use a database (Neon, Upstash)\n- CDN-level full response caching → use `Cache-Control` \u002F `Vercel-CDN-Cache-Control` headers\n- Cross-region shared state → use a database\n- User-specific data that differs per request\n\n## References\n\n- 📖 docs: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fruntime-cache\n- 📖 changelog: https:\u002F\u002Fvercel.com\u002Fchangelog\u002Fintroducing-the-runtime-cache-api\n- 📖 CLI cache: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fcache\n- 📖 CDN cache purging: https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcdn-cache\u002Fpurge\n",{"data":35,"body":82},{"name":4,"description":6,"metadata":36,"validate":51,"retrieval":59,"chainTo":75},{"priority":37,"docs":38,"sitemap":40,"pathPatterns":41,"bashPatterns":46},6,[39],"https:\u002F\u002Fnextjs.org\u002Fdocs\u002Fapp\u002Fbuilding-your-application\u002Fcaching","https:\u002F\u002Fnextjs.org\u002Fsitemap.xml",[42,43,44,45],"lib\u002Fcache\u002F**","src\u002Flib\u002Fcache\u002F**","lib\u002Fcache.*","src\u002Flib\u002Fcache.*",[47,48,49,50],"\\bnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b","\\bpnpm\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b","\\bbun\\s+(install|i|add)\\s+[^\\n]*@vercel\u002Ffunctions\\b","\\byarn\\s+add\\s+[^\\n]*@vercel\u002Ffunctions\\b",[52],{"pattern":53,"message":54,"severity":55,"upgradeToSkill":56,"upgradeWhy":57,"skipIfFileContains":58},"from\\s+['\"\"](redis|ioredis)['\"\"]|require\\s*\\(\\s*['\"\"](redis|ioredis)['\"\"]|new\\s+Redis\\(","Direct Redis\u002Fioredis client detected. Use Upstash Redis (@upstash\u002Fredis) for serverless-native Redis with HTTP-based connections.","recommended","vercel-storage","Replace direct Redis\u002Fioredis with @upstash\u002Fredis for serverless-compatible HTTP-based Redis that works without persistent TCP connections.","from\\s+['\"\"]\\@upstash\u002Fredis['\"\"]",{"aliases":60,"intents":65,"entities":70},[61,62,63,64],"cache api","kv cache","region cache","tag invalidation",[66,67,68,69],"add caching","cache api response","invalidate cache","set up runtime cache",[71,72,73,74],"Runtime Cache","tag-based invalidation","key-value","cache",[76,79],{"pattern":77,"targetSkill":56,"message":78},"from\\s+['\"\"]@vercel\u002Fkv['\"\"]","@vercel\u002Fkv is sunset — loading Vercel Storage guidance for Upstash Redis migration.",{"pattern":80,"targetSkill":56,"message":81},"from\\s+['\"\"]ioredis['\"\"]|new\\s+Redis\\(","Direct Redis client detected — loading Vercel Storage guidance for Upstash Redis (serverless-native) integration.",{"type":83,"children":84},"root",[85,94,100,107,126,210,216,228,235,831,837,1005,1011,1576,1582,1741,1747,1759,1950,1959,1992,1998,2011,2075,2333,2366,2372,2471,2497,2503,2573,2579,2856,2877,2883,2888,3144,3150,3237,3254,3260,3279,3285,3308,3314,3362,3368,3417],{"type":86,"tag":87,"props":88,"children":90},"element","h1",{"id":89},"vercel-runtime-cache-api",[91],{"type":92,"value":93},"text","Vercel Runtime Cache API",{"type":86,"tag":95,"props":96,"children":97},"p",{},[98],{"type":92,"value":99},"You are an expert in the Vercel Runtime Cache — an ephemeral caching layer for serverless compute.",{"type":86,"tag":101,"props":102,"children":104},"h2",{"id":103},"what-it-is",[105],{"type":92,"value":106},"What It Is",{"type":86,"tag":95,"props":108,"children":109},{},[110,112,118,120,124],{"type":92,"value":111},"The Runtime Cache is a ",{"type":86,"tag":113,"props":114,"children":115},"strong",{},[116],{"type":92,"value":117},"per-region key-value store",{"type":92,"value":119}," accessible from Vercel Functions, Routing Middleware, and Builds. It supports ",{"type":86,"tag":113,"props":121,"children":122},{},[123],{"type":92,"value":72},{"type":92,"value":125}," for granular cache control.",{"type":86,"tag":127,"props":128,"children":129},"ul",{},[130,141,168,184,194],{"type":86,"tag":131,"props":132,"children":133},"li",{},[134,139],{"type":86,"tag":113,"props":135,"children":136},{},[137],{"type":92,"value":138},"Regional",{"type":92,"value":140},": Each Vercel region has its own isolated cache",{"type":86,"tag":131,"props":142,"children":143},{},[144,149,151,158,160,166],{"type":86,"tag":113,"props":145,"children":146},{},[147],{"type":92,"value":148},"Isolated",{"type":92,"value":150},": Scoped per project AND per deployment environment (",{"type":86,"tag":152,"props":153,"children":155},"code",{"className":154},[],[156],{"type":92,"value":157},"preview",{"type":92,"value":159}," vs ",{"type":86,"tag":152,"props":161,"children":163},{"className":162},[],[164],{"type":92,"value":165},"production",{"type":92,"value":167},")",{"type":86,"tag":131,"props":169,"children":170},{},[171,176,178],{"type":86,"tag":113,"props":172,"children":173},{},[174],{"type":92,"value":175},"Persistent across deployments",{"type":92,"value":177},": Cached data survives new deploys; invalidation via TTL or ",{"type":86,"tag":152,"props":179,"children":181},{"className":180},[],[182],{"type":92,"value":183},"expireTag",{"type":86,"tag":131,"props":185,"children":186},{},[187,192],{"type":86,"tag":113,"props":188,"children":189},{},[190],{"type":92,"value":191},"Ephemeral",{"type":92,"value":193},": Fixed storage limit per project; LRU eviction when full",{"type":86,"tag":131,"props":195,"children":196},{},[197,202,204],{"type":86,"tag":113,"props":198,"children":199},{},[200],{"type":92,"value":201},"Framework-agnostic",{"type":92,"value":203},": Works with any framework via ",{"type":86,"tag":152,"props":205,"children":207},{"className":206},[],[208],{"type":92,"value":209},"@vercel\u002Ffunctions",{"type":86,"tag":101,"props":211,"children":213},{"id":212},"key-apis",[214],{"type":92,"value":215},"Key APIs",{"type":86,"tag":95,"props":217,"children":218},{},[219,221,226],{"type":92,"value":220},"All APIs from ",{"type":86,"tag":152,"props":222,"children":224},{"className":223},[],[225],{"type":92,"value":209},{"type":92,"value":227},":",{"type":86,"tag":229,"props":230,"children":232},"h3",{"id":231},"basic-cache-operations",[233],{"type":92,"value":234},"Basic Cache Operations",{"type":86,"tag":236,"props":237,"children":242},"pre",{"className":238,"code":239,"language":240,"meta":241,"style":241},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { getCache } from '@vercel\u002Ffunctions';\n\nconst cache = getCache();\n\n\u002F\u002F Store data with TTL and tags\nawait cache.set('user:123', userData, {\n  ttl: 3600,                      \u002F\u002F seconds\n  tags: ['users', 'user:123'],    \u002F\u002F for bulk invalidation\n  name: 'user-profile',           \u002F\u002F human-readable label for observability\n});\n\n\u002F\u002F Retrieve cached data (returns value or undefined)\nconst data = await cache.get('user:123');\n\n\u002F\u002F Delete a specific key\nawait cache.delete('user:123');\n\n\u002F\u002F Expire all entries with a tag (propagates globally within 300ms)\nawait cache.expireTag('users');\nawait cache.expireTag(['users', 'user:123']); \u002F\u002F multiple tags\n","ts","",[243],{"type":86,"tag":152,"props":244,"children":245},{"__ignoreMap":241},[246,300,310,344,352,362,422,451,512,547,564,572,581,640,648,657,702,710,719,763],{"type":86,"tag":247,"props":248,"children":251},"span",{"class":249,"line":250},"line",1,[252,258,264,270,275,280,285,290,295],{"type":86,"tag":247,"props":253,"children":255},{"style":254},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[256],{"type":92,"value":257},"import",{"type":86,"tag":247,"props":259,"children":261},{"style":260},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[262],{"type":92,"value":263}," {",{"type":86,"tag":247,"props":265,"children":267},{"style":266},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[268],{"type":92,"value":269}," getCache",{"type":86,"tag":247,"props":271,"children":272},{"style":260},[273],{"type":92,"value":274}," }",{"type":86,"tag":247,"props":276,"children":277},{"style":254},[278],{"type":92,"value":279}," from",{"type":86,"tag":247,"props":281,"children":282},{"style":260},[283],{"type":92,"value":284}," '",{"type":86,"tag":247,"props":286,"children":288},{"style":287},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[289],{"type":92,"value":209},{"type":86,"tag":247,"props":291,"children":292},{"style":260},[293],{"type":92,"value":294},"'",{"type":86,"tag":247,"props":296,"children":297},{"style":260},[298],{"type":92,"value":299},";\n",{"type":86,"tag":247,"props":301,"children":303},{"class":249,"line":302},2,[304],{"type":86,"tag":247,"props":305,"children":307},{"emptyLinePlaceholder":306},true,[308],{"type":92,"value":309},"\n",{"type":86,"tag":247,"props":311,"children":313},{"class":249,"line":312},3,[314,320,325,330,335,340],{"type":86,"tag":247,"props":315,"children":317},{"style":316},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[318],{"type":92,"value":319},"const",{"type":86,"tag":247,"props":321,"children":322},{"style":266},[323],{"type":92,"value":324}," cache ",{"type":86,"tag":247,"props":326,"children":327},{"style":260},[328],{"type":92,"value":329},"=",{"type":86,"tag":247,"props":331,"children":333},{"style":332},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[334],{"type":92,"value":269},{"type":86,"tag":247,"props":336,"children":337},{"style":266},[338],{"type":92,"value":339},"()",{"type":86,"tag":247,"props":341,"children":342},{"style":260},[343],{"type":92,"value":299},{"type":86,"tag":247,"props":345,"children":347},{"class":249,"line":346},4,[348],{"type":86,"tag":247,"props":349,"children":350},{"emptyLinePlaceholder":306},[351],{"type":92,"value":309},{"type":86,"tag":247,"props":353,"children":355},{"class":249,"line":354},5,[356],{"type":86,"tag":247,"props":357,"children":359},{"style":358},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[360],{"type":92,"value":361},"\u002F\u002F Store data with TTL and tags\n",{"type":86,"tag":247,"props":363,"children":364},{"class":249,"line":37},[365,370,375,380,385,390,394,399,403,408,413,417],{"type":86,"tag":247,"props":366,"children":367},{"style":254},[368],{"type":92,"value":369},"await",{"type":86,"tag":247,"props":371,"children":372},{"style":266},[373],{"type":92,"value":374}," cache",{"type":86,"tag":247,"props":376,"children":377},{"style":260},[378],{"type":92,"value":379},".",{"type":86,"tag":247,"props":381,"children":382},{"style":332},[383],{"type":92,"value":384},"set",{"type":86,"tag":247,"props":386,"children":387},{"style":266},[388],{"type":92,"value":389},"(",{"type":86,"tag":247,"props":391,"children":392},{"style":260},[393],{"type":92,"value":294},{"type":86,"tag":247,"props":395,"children":396},{"style":287},[397],{"type":92,"value":398},"user:123",{"type":86,"tag":247,"props":400,"children":401},{"style":260},[402],{"type":92,"value":294},{"type":86,"tag":247,"props":404,"children":405},{"style":260},[406],{"type":92,"value":407},",",{"type":86,"tag":247,"props":409,"children":410},{"style":266},[411],{"type":92,"value":412}," userData",{"type":86,"tag":247,"props":414,"children":415},{"style":260},[416],{"type":92,"value":407},{"type":86,"tag":247,"props":418,"children":419},{"style":260},[420],{"type":92,"value":421}," {\n",{"type":86,"tag":247,"props":423,"children":425},{"class":249,"line":424},7,[426,432,436,442,446],{"type":86,"tag":247,"props":427,"children":429},{"style":428},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[430],{"type":92,"value":431},"  ttl",{"type":86,"tag":247,"props":433,"children":434},{"style":260},[435],{"type":92,"value":227},{"type":86,"tag":247,"props":437,"children":439},{"style":438},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[440],{"type":92,"value":441}," 3600",{"type":86,"tag":247,"props":443,"children":444},{"style":260},[445],{"type":92,"value":407},{"type":86,"tag":247,"props":447,"children":448},{"style":358},[449],{"type":92,"value":450},"                      \u002F\u002F seconds\n",{"type":86,"tag":247,"props":452,"children":454},{"class":249,"line":453},8,[455,460,464,469,473,478,482,486,490,494,498,503,507],{"type":86,"tag":247,"props":456,"children":457},{"style":428},[458],{"type":92,"value":459},"  tags",{"type":86,"tag":247,"props":461,"children":462},{"style":260},[463],{"type":92,"value":227},{"type":86,"tag":247,"props":465,"children":466},{"style":266},[467],{"type":92,"value":468}," [",{"type":86,"tag":247,"props":470,"children":471},{"style":260},[472],{"type":92,"value":294},{"type":86,"tag":247,"props":474,"children":475},{"style":287},[476],{"type":92,"value":477},"users",{"type":86,"tag":247,"props":479,"children":480},{"style":260},[481],{"type":92,"value":294},{"type":86,"tag":247,"props":483,"children":484},{"style":260},[485],{"type":92,"value":407},{"type":86,"tag":247,"props":487,"children":488},{"style":260},[489],{"type":92,"value":284},{"type":86,"tag":247,"props":491,"children":492},{"style":287},[493],{"type":92,"value":398},{"type":86,"tag":247,"props":495,"children":496},{"style":260},[497],{"type":92,"value":294},{"type":86,"tag":247,"props":499,"children":500},{"style":266},[501],{"type":92,"value":502},"]",{"type":86,"tag":247,"props":504,"children":505},{"style":260},[506],{"type":92,"value":407},{"type":86,"tag":247,"props":508,"children":509},{"style":358},[510],{"type":92,"value":511},"    \u002F\u002F for bulk invalidation\n",{"type":86,"tag":247,"props":513,"children":515},{"class":249,"line":514},9,[516,521,525,529,534,538,542],{"type":86,"tag":247,"props":517,"children":518},{"style":428},[519],{"type":92,"value":520},"  name",{"type":86,"tag":247,"props":522,"children":523},{"style":260},[524],{"type":92,"value":227},{"type":86,"tag":247,"props":526,"children":527},{"style":260},[528],{"type":92,"value":284},{"type":86,"tag":247,"props":530,"children":531},{"style":287},[532],{"type":92,"value":533},"user-profile",{"type":86,"tag":247,"props":535,"children":536},{"style":260},[537],{"type":92,"value":294},{"type":86,"tag":247,"props":539,"children":540},{"style":260},[541],{"type":92,"value":407},{"type":86,"tag":247,"props":543,"children":544},{"style":358},[545],{"type":92,"value":546},"           \u002F\u002F human-readable label for observability\n",{"type":86,"tag":247,"props":548,"children":550},{"class":249,"line":549},10,[551,556,560],{"type":86,"tag":247,"props":552,"children":553},{"style":260},[554],{"type":92,"value":555},"}",{"type":86,"tag":247,"props":557,"children":558},{"style":266},[559],{"type":92,"value":167},{"type":86,"tag":247,"props":561,"children":562},{"style":260},[563],{"type":92,"value":299},{"type":86,"tag":247,"props":565,"children":567},{"class":249,"line":566},11,[568],{"type":86,"tag":247,"props":569,"children":570},{"emptyLinePlaceholder":306},[571],{"type":92,"value":309},{"type":86,"tag":247,"props":573,"children":575},{"class":249,"line":574},12,[576],{"type":86,"tag":247,"props":577,"children":578},{"style":358},[579],{"type":92,"value":580},"\u002F\u002F Retrieve cached data (returns value or undefined)\n",{"type":86,"tag":247,"props":582,"children":584},{"class":249,"line":583},13,[585,589,594,598,603,607,611,616,620,624,628,632,636],{"type":86,"tag":247,"props":586,"children":587},{"style":316},[588],{"type":92,"value":319},{"type":86,"tag":247,"props":590,"children":591},{"style":266},[592],{"type":92,"value":593}," data ",{"type":86,"tag":247,"props":595,"children":596},{"style":260},[597],{"type":92,"value":329},{"type":86,"tag":247,"props":599,"children":600},{"style":254},[601],{"type":92,"value":602}," await",{"type":86,"tag":247,"props":604,"children":605},{"style":266},[606],{"type":92,"value":374},{"type":86,"tag":247,"props":608,"children":609},{"style":260},[610],{"type":92,"value":379},{"type":86,"tag":247,"props":612,"children":613},{"style":332},[614],{"type":92,"value":615},"get",{"type":86,"tag":247,"props":617,"children":618},{"style":266},[619],{"type":92,"value":389},{"type":86,"tag":247,"props":621,"children":622},{"style":260},[623],{"type":92,"value":294},{"type":86,"tag":247,"props":625,"children":626},{"style":287},[627],{"type":92,"value":398},{"type":86,"tag":247,"props":629,"children":630},{"style":260},[631],{"type":92,"value":294},{"type":86,"tag":247,"props":633,"children":634},{"style":266},[635],{"type":92,"value":167},{"type":86,"tag":247,"props":637,"children":638},{"style":260},[639],{"type":92,"value":299},{"type":86,"tag":247,"props":641,"children":643},{"class":249,"line":642},14,[644],{"type":86,"tag":247,"props":645,"children":646},{"emptyLinePlaceholder":306},[647],{"type":92,"value":309},{"type":86,"tag":247,"props":649,"children":651},{"class":249,"line":650},15,[652],{"type":86,"tag":247,"props":653,"children":654},{"style":358},[655],{"type":92,"value":656},"\u002F\u002F Delete a specific key\n",{"type":86,"tag":247,"props":658,"children":660},{"class":249,"line":659},16,[661,665,669,673,678,682,686,690,694,698],{"type":86,"tag":247,"props":662,"children":663},{"style":254},[664],{"type":92,"value":369},{"type":86,"tag":247,"props":666,"children":667},{"style":266},[668],{"type":92,"value":374},{"type":86,"tag":247,"props":670,"children":671},{"style":260},[672],{"type":92,"value":379},{"type":86,"tag":247,"props":674,"children":675},{"style":332},[676],{"type":92,"value":677},"delete",{"type":86,"tag":247,"props":679,"children":680},{"style":266},[681],{"type":92,"value":389},{"type":86,"tag":247,"props":683,"children":684},{"style":260},[685],{"type":92,"value":294},{"type":86,"tag":247,"props":687,"children":688},{"style":287},[689],{"type":92,"value":398},{"type":86,"tag":247,"props":691,"children":692},{"style":260},[693],{"type":92,"value":294},{"type":86,"tag":247,"props":695,"children":696},{"style":266},[697],{"type":92,"value":167},{"type":86,"tag":247,"props":699,"children":700},{"style":260},[701],{"type":92,"value":299},{"type":86,"tag":247,"props":703,"children":705},{"class":249,"line":704},17,[706],{"type":86,"tag":247,"props":707,"children":708},{"emptyLinePlaceholder":306},[709],{"type":92,"value":309},{"type":86,"tag":247,"props":711,"children":713},{"class":249,"line":712},18,[714],{"type":86,"tag":247,"props":715,"children":716},{"style":358},[717],{"type":92,"value":718},"\u002F\u002F Expire all entries with a tag (propagates globally within 300ms)\n",{"type":86,"tag":247,"props":720,"children":722},{"class":249,"line":721},19,[723,727,731,735,739,743,747,751,755,759],{"type":86,"tag":247,"props":724,"children":725},{"style":254},[726],{"type":92,"value":369},{"type":86,"tag":247,"props":728,"children":729},{"style":266},[730],{"type":92,"value":374},{"type":86,"tag":247,"props":732,"children":733},{"style":260},[734],{"type":92,"value":379},{"type":86,"tag":247,"props":736,"children":737},{"style":332},[738],{"type":92,"value":183},{"type":86,"tag":247,"props":740,"children":741},{"style":266},[742],{"type":92,"value":389},{"type":86,"tag":247,"props":744,"children":745},{"style":260},[746],{"type":92,"value":294},{"type":86,"tag":247,"props":748,"children":749},{"style":287},[750],{"type":92,"value":477},{"type":86,"tag":247,"props":752,"children":753},{"style":260},[754],{"type":92,"value":294},{"type":86,"tag":247,"props":756,"children":757},{"style":266},[758],{"type":92,"value":167},{"type":86,"tag":247,"props":760,"children":761},{"style":260},[762],{"type":92,"value":299},{"type":86,"tag":247,"props":764,"children":766},{"class":249,"line":765},20,[767,771,775,779,783,788,792,796,800,804,808,812,816,821,826],{"type":86,"tag":247,"props":768,"children":769},{"style":254},[770],{"type":92,"value":369},{"type":86,"tag":247,"props":772,"children":773},{"style":266},[774],{"type":92,"value":374},{"type":86,"tag":247,"props":776,"children":777},{"style":260},[778],{"type":92,"value":379},{"type":86,"tag":247,"props":780,"children":781},{"style":332},[782],{"type":92,"value":183},{"type":86,"tag":247,"props":784,"children":785},{"style":266},[786],{"type":92,"value":787},"([",{"type":86,"tag":247,"props":789,"children":790},{"style":260},[791],{"type":92,"value":294},{"type":86,"tag":247,"props":793,"children":794},{"style":287},[795],{"type":92,"value":477},{"type":86,"tag":247,"props":797,"children":798},{"style":260},[799],{"type":92,"value":294},{"type":86,"tag":247,"props":801,"children":802},{"style":260},[803],{"type":92,"value":407},{"type":86,"tag":247,"props":805,"children":806},{"style":260},[807],{"type":92,"value":284},{"type":86,"tag":247,"props":809,"children":810},{"style":287},[811],{"type":92,"value":398},{"type":86,"tag":247,"props":813,"children":814},{"style":260},[815],{"type":92,"value":294},{"type":86,"tag":247,"props":817,"children":818},{"style":266},[819],{"type":92,"value":820},"])",{"type":86,"tag":247,"props":822,"children":823},{"style":260},[824],{"type":92,"value":825},";",{"type":86,"tag":247,"props":827,"children":828},{"style":358},[829],{"type":92,"value":830}," \u002F\u002F multiple tags\n",{"type":86,"tag":229,"props":832,"children":834},{"id":833},"cache-options",[835],{"type":92,"value":836},"Cache Options",{"type":86,"tag":236,"props":838,"children":840},{"className":238,"code":839,"language":240,"meta":241,"style":241},"const cache = getCache({\n  namespace: 'api',                    \u002F\u002F prefix for keys\n  namespaceSeparator: ':',             \u002F\u002F separator (default)\n  keyHashFunction: (key) => sha256(key), \u002F\u002F custom key hashing\n});\n",[841],{"type":86,"tag":152,"props":842,"children":843},{"__ignoreMap":241},[844,872,906,939,990],{"type":86,"tag":247,"props":845,"children":846},{"class":249,"line":250},[847,851,855,859,863,867],{"type":86,"tag":247,"props":848,"children":849},{"style":316},[850],{"type":92,"value":319},{"type":86,"tag":247,"props":852,"children":853},{"style":266},[854],{"type":92,"value":324},{"type":86,"tag":247,"props":856,"children":857},{"style":260},[858],{"type":92,"value":329},{"type":86,"tag":247,"props":860,"children":861},{"style":332},[862],{"type":92,"value":269},{"type":86,"tag":247,"props":864,"children":865},{"style":266},[866],{"type":92,"value":389},{"type":86,"tag":247,"props":868,"children":869},{"style":260},[870],{"type":92,"value":871},"{\n",{"type":86,"tag":247,"props":873,"children":874},{"class":249,"line":302},[875,880,884,888,893,897,901],{"type":86,"tag":247,"props":876,"children":877},{"style":428},[878],{"type":92,"value":879},"  namespace",{"type":86,"tag":247,"props":881,"children":882},{"style":260},[883],{"type":92,"value":227},{"type":86,"tag":247,"props":885,"children":886},{"style":260},[887],{"type":92,"value":284},{"type":86,"tag":247,"props":889,"children":890},{"style":287},[891],{"type":92,"value":892},"api",{"type":86,"tag":247,"props":894,"children":895},{"style":260},[896],{"type":92,"value":294},{"type":86,"tag":247,"props":898,"children":899},{"style":260},[900],{"type":92,"value":407},{"type":86,"tag":247,"props":902,"children":903},{"style":358},[904],{"type":92,"value":905},"                    \u002F\u002F prefix for keys\n",{"type":86,"tag":247,"props":907,"children":908},{"class":249,"line":312},[909,914,918,922,926,930,934],{"type":86,"tag":247,"props":910,"children":911},{"style":428},[912],{"type":92,"value":913},"  namespaceSeparator",{"type":86,"tag":247,"props":915,"children":916},{"style":260},[917],{"type":92,"value":227},{"type":86,"tag":247,"props":919,"children":920},{"style":260},[921],{"type":92,"value":284},{"type":86,"tag":247,"props":923,"children":924},{"style":287},[925],{"type":92,"value":227},{"type":86,"tag":247,"props":927,"children":928},{"style":260},[929],{"type":92,"value":294},{"type":86,"tag":247,"props":931,"children":932},{"style":260},[933],{"type":92,"value":407},{"type":86,"tag":247,"props":935,"children":936},{"style":358},[937],{"type":92,"value":938},"             \u002F\u002F separator (default)\n",{"type":86,"tag":247,"props":940,"children":941},{"class":249,"line":346},[942,947,951,956,962,966,971,976,981,985],{"type":86,"tag":247,"props":943,"children":944},{"style":332},[945],{"type":92,"value":946},"  keyHashFunction",{"type":86,"tag":247,"props":948,"children":949},{"style":260},[950],{"type":92,"value":227},{"type":86,"tag":247,"props":952,"children":953},{"style":260},[954],{"type":92,"value":955}," (",{"type":86,"tag":247,"props":957,"children":959},{"style":958},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[960],{"type":92,"value":961},"key",{"type":86,"tag":247,"props":963,"children":964},{"style":260},[965],{"type":92,"value":167},{"type":86,"tag":247,"props":967,"children":968},{"style":316},[969],{"type":92,"value":970}," =>",{"type":86,"tag":247,"props":972,"children":973},{"style":332},[974],{"type":92,"value":975}," sha256",{"type":86,"tag":247,"props":977,"children":978},{"style":266},[979],{"type":92,"value":980},"(key)",{"type":86,"tag":247,"props":982,"children":983},{"style":260},[984],{"type":92,"value":407},{"type":86,"tag":247,"props":986,"children":987},{"style":358},[988],{"type":92,"value":989}," \u002F\u002F custom key hashing\n",{"type":86,"tag":247,"props":991,"children":992},{"class":249,"line":354},[993,997,1001],{"type":86,"tag":247,"props":994,"children":995},{"style":260},[996],{"type":92,"value":555},{"type":86,"tag":247,"props":998,"children":999},{"style":266},[1000],{"type":92,"value":167},{"type":86,"tag":247,"props":1002,"children":1003},{"style":260},[1004],{"type":92,"value":299},{"type":86,"tag":229,"props":1006,"children":1008},{"id":1007},"full-example-framework-agnostic",[1009],{"type":92,"value":1010},"Full Example (Framework-Agnostic)",{"type":86,"tag":236,"props":1012,"children":1014},{"className":238,"code":1013,"language":240,"meta":241,"style":241},"import { getCache } from '@vercel\u002Ffunctions';\n\nexport default {\n  async fetch(request: Request) {\n    const cache = getCache();\n    const cached = await cache.get('blog-posts');\n\n    if (cached) {\n      return Response.json(cached);\n    }\n\n    const posts = await fetch('https:\u002F\u002Fapi.example.com\u002Fposts').then(r => r.json());\n\n    await cache.set('blog-posts', posts, {\n      ttl: 3600,\n      tags: ['blog'],\n    });\n\n    return Response.json(posts);\n  },\n};\n",[1015],{"type":86,"tag":152,"props":1016,"children":1017},{"__ignoreMap":241},[1018,1057,1064,1081,1121,1150,1207,1214,1240,1278,1286,1293,1382,1389,1441,1462,1499,1515,1522,1559,1567],{"type":86,"tag":247,"props":1019,"children":1020},{"class":249,"line":250},[1021,1025,1029,1033,1037,1041,1045,1049,1053],{"type":86,"tag":247,"props":1022,"children":1023},{"style":254},[1024],{"type":92,"value":257},{"type":86,"tag":247,"props":1026,"children":1027},{"style":260},[1028],{"type":92,"value":263},{"type":86,"tag":247,"props":1030,"children":1031},{"style":266},[1032],{"type":92,"value":269},{"type":86,"tag":247,"props":1034,"children":1035},{"style":260},[1036],{"type":92,"value":274},{"type":86,"tag":247,"props":1038,"children":1039},{"style":254},[1040],{"type":92,"value":279},{"type":86,"tag":247,"props":1042,"children":1043},{"style":260},[1044],{"type":92,"value":284},{"type":86,"tag":247,"props":1046,"children":1047},{"style":287},[1048],{"type":92,"value":209},{"type":86,"tag":247,"props":1050,"children":1051},{"style":260},[1052],{"type":92,"value":294},{"type":86,"tag":247,"props":1054,"children":1055},{"style":260},[1056],{"type":92,"value":299},{"type":86,"tag":247,"props":1058,"children":1059},{"class":249,"line":302},[1060],{"type":86,"tag":247,"props":1061,"children":1062},{"emptyLinePlaceholder":306},[1063],{"type":92,"value":309},{"type":86,"tag":247,"props":1065,"children":1066},{"class":249,"line":312},[1067,1072,1077],{"type":86,"tag":247,"props":1068,"children":1069},{"style":254},[1070],{"type":92,"value":1071},"export",{"type":86,"tag":247,"props":1073,"children":1074},{"style":254},[1075],{"type":92,"value":1076}," default",{"type":86,"tag":247,"props":1078,"children":1079},{"style":260},[1080],{"type":92,"value":421},{"type":86,"tag":247,"props":1082,"children":1083},{"class":249,"line":346},[1084,1089,1094,1098,1103,1107,1113,1117],{"type":86,"tag":247,"props":1085,"children":1086},{"style":316},[1087],{"type":92,"value":1088},"  async",{"type":86,"tag":247,"props":1090,"children":1091},{"style":428},[1092],{"type":92,"value":1093}," fetch",{"type":86,"tag":247,"props":1095,"children":1096},{"style":260},[1097],{"type":92,"value":389},{"type":86,"tag":247,"props":1099,"children":1100},{"style":958},[1101],{"type":92,"value":1102},"request",{"type":86,"tag":247,"props":1104,"children":1105},{"style":260},[1106],{"type":92,"value":227},{"type":86,"tag":247,"props":1108,"children":1110},{"style":1109},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1111],{"type":92,"value":1112}," Request",{"type":86,"tag":247,"props":1114,"children":1115},{"style":260},[1116],{"type":92,"value":167},{"type":86,"tag":247,"props":1118,"children":1119},{"style":260},[1120],{"type":92,"value":421},{"type":86,"tag":247,"props":1122,"children":1123},{"class":249,"line":354},[1124,1129,1133,1138,1142,1146],{"type":86,"tag":247,"props":1125,"children":1126},{"style":316},[1127],{"type":92,"value":1128},"    const",{"type":86,"tag":247,"props":1130,"children":1131},{"style":266},[1132],{"type":92,"value":374},{"type":86,"tag":247,"props":1134,"children":1135},{"style":260},[1136],{"type":92,"value":1137}," =",{"type":86,"tag":247,"props":1139,"children":1140},{"style":332},[1141],{"type":92,"value":269},{"type":86,"tag":247,"props":1143,"children":1144},{"style":428},[1145],{"type":92,"value":339},{"type":86,"tag":247,"props":1147,"children":1148},{"style":260},[1149],{"type":92,"value":299},{"type":86,"tag":247,"props":1151,"children":1152},{"class":249,"line":37},[1153,1157,1162,1166,1170,1174,1178,1182,1186,1190,1195,1199,1203],{"type":86,"tag":247,"props":1154,"children":1155},{"style":316},[1156],{"type":92,"value":1128},{"type":86,"tag":247,"props":1158,"children":1159},{"style":266},[1160],{"type":92,"value":1161}," cached",{"type":86,"tag":247,"props":1163,"children":1164},{"style":260},[1165],{"type":92,"value":1137},{"type":86,"tag":247,"props":1167,"children":1168},{"style":254},[1169],{"type":92,"value":602},{"type":86,"tag":247,"props":1171,"children":1172},{"style":266},[1173],{"type":92,"value":374},{"type":86,"tag":247,"props":1175,"children":1176},{"style":260},[1177],{"type":92,"value":379},{"type":86,"tag":247,"props":1179,"children":1180},{"style":332},[1181],{"type":92,"value":615},{"type":86,"tag":247,"props":1183,"children":1184},{"style":428},[1185],{"type":92,"value":389},{"type":86,"tag":247,"props":1187,"children":1188},{"style":260},[1189],{"type":92,"value":294},{"type":86,"tag":247,"props":1191,"children":1192},{"style":287},[1193],{"type":92,"value":1194},"blog-posts",{"type":86,"tag":247,"props":1196,"children":1197},{"style":260},[1198],{"type":92,"value":294},{"type":86,"tag":247,"props":1200,"children":1201},{"style":428},[1202],{"type":92,"value":167},{"type":86,"tag":247,"props":1204,"children":1205},{"style":260},[1206],{"type":92,"value":299},{"type":86,"tag":247,"props":1208,"children":1209},{"class":249,"line":424},[1210],{"type":86,"tag":247,"props":1211,"children":1212},{"emptyLinePlaceholder":306},[1213],{"type":92,"value":309},{"type":86,"tag":247,"props":1215,"children":1216},{"class":249,"line":453},[1217,1222,1226,1231,1236],{"type":86,"tag":247,"props":1218,"children":1219},{"style":254},[1220],{"type":92,"value":1221},"    if",{"type":86,"tag":247,"props":1223,"children":1224},{"style":428},[1225],{"type":92,"value":955},{"type":86,"tag":247,"props":1227,"children":1228},{"style":266},[1229],{"type":92,"value":1230},"cached",{"type":86,"tag":247,"props":1232,"children":1233},{"style":428},[1234],{"type":92,"value":1235},") ",{"type":86,"tag":247,"props":1237,"children":1238},{"style":260},[1239],{"type":92,"value":871},{"type":86,"tag":247,"props":1241,"children":1242},{"class":249,"line":514},[1243,1248,1253,1257,1262,1266,1270,1274],{"type":86,"tag":247,"props":1244,"children":1245},{"style":254},[1246],{"type":92,"value":1247},"      return",{"type":86,"tag":247,"props":1249,"children":1250},{"style":266},[1251],{"type":92,"value":1252}," Response",{"type":86,"tag":247,"props":1254,"children":1255},{"style":260},[1256],{"type":92,"value":379},{"type":86,"tag":247,"props":1258,"children":1259},{"style":332},[1260],{"type":92,"value":1261},"json",{"type":86,"tag":247,"props":1263,"children":1264},{"style":428},[1265],{"type":92,"value":389},{"type":86,"tag":247,"props":1267,"children":1268},{"style":266},[1269],{"type":92,"value":1230},{"type":86,"tag":247,"props":1271,"children":1272},{"style":428},[1273],{"type":92,"value":167},{"type":86,"tag":247,"props":1275,"children":1276},{"style":260},[1277],{"type":92,"value":299},{"type":86,"tag":247,"props":1279,"children":1280},{"class":249,"line":549},[1281],{"type":86,"tag":247,"props":1282,"children":1283},{"style":260},[1284],{"type":92,"value":1285},"    }\n",{"type":86,"tag":247,"props":1287,"children":1288},{"class":249,"line":566},[1289],{"type":86,"tag":247,"props":1290,"children":1291},{"emptyLinePlaceholder":306},[1292],{"type":92,"value":309},{"type":86,"tag":247,"props":1294,"children":1295},{"class":249,"line":574},[1296,1300,1305,1309,1313,1317,1321,1325,1330,1334,1338,1342,1347,1351,1356,1360,1365,1369,1373,1378],{"type":86,"tag":247,"props":1297,"children":1298},{"style":316},[1299],{"type":92,"value":1128},{"type":86,"tag":247,"props":1301,"children":1302},{"style":266},[1303],{"type":92,"value":1304}," posts",{"type":86,"tag":247,"props":1306,"children":1307},{"style":260},[1308],{"type":92,"value":1137},{"type":86,"tag":247,"props":1310,"children":1311},{"style":254},[1312],{"type":92,"value":602},{"type":86,"tag":247,"props":1314,"children":1315},{"style":332},[1316],{"type":92,"value":1093},{"type":86,"tag":247,"props":1318,"children":1319},{"style":428},[1320],{"type":92,"value":389},{"type":86,"tag":247,"props":1322,"children":1323},{"style":260},[1324],{"type":92,"value":294},{"type":86,"tag":247,"props":1326,"children":1327},{"style":287},[1328],{"type":92,"value":1329},"https:\u002F\u002Fapi.example.com\u002Fposts",{"type":86,"tag":247,"props":1331,"children":1332},{"style":260},[1333],{"type":92,"value":294},{"type":86,"tag":247,"props":1335,"children":1336},{"style":428},[1337],{"type":92,"value":167},{"type":86,"tag":247,"props":1339,"children":1340},{"style":260},[1341],{"type":92,"value":379},{"type":86,"tag":247,"props":1343,"children":1344},{"style":332},[1345],{"type":92,"value":1346},"then",{"type":86,"tag":247,"props":1348,"children":1349},{"style":428},[1350],{"type":92,"value":389},{"type":86,"tag":247,"props":1352,"children":1353},{"style":958},[1354],{"type":92,"value":1355},"r",{"type":86,"tag":247,"props":1357,"children":1358},{"style":316},[1359],{"type":92,"value":970},{"type":86,"tag":247,"props":1361,"children":1362},{"style":266},[1363],{"type":92,"value":1364}," r",{"type":86,"tag":247,"props":1366,"children":1367},{"style":260},[1368],{"type":92,"value":379},{"type":86,"tag":247,"props":1370,"children":1371},{"style":332},[1372],{"type":92,"value":1261},{"type":86,"tag":247,"props":1374,"children":1375},{"style":428},[1376],{"type":92,"value":1377},"())",{"type":86,"tag":247,"props":1379,"children":1380},{"style":260},[1381],{"type":92,"value":299},{"type":86,"tag":247,"props":1383,"children":1384},{"class":249,"line":583},[1385],{"type":86,"tag":247,"props":1386,"children":1387},{"emptyLinePlaceholder":306},[1388],{"type":92,"value":309},{"type":86,"tag":247,"props":1390,"children":1391},{"class":249,"line":642},[1392,1397,1401,1405,1409,1413,1417,1421,1425,1429,1433,1437],{"type":86,"tag":247,"props":1393,"children":1394},{"style":254},[1395],{"type":92,"value":1396},"    await",{"type":86,"tag":247,"props":1398,"children":1399},{"style":266},[1400],{"type":92,"value":374},{"type":86,"tag":247,"props":1402,"children":1403},{"style":260},[1404],{"type":92,"value":379},{"type":86,"tag":247,"props":1406,"children":1407},{"style":332},[1408],{"type":92,"value":384},{"type":86,"tag":247,"props":1410,"children":1411},{"style":428},[1412],{"type":92,"value":389},{"type":86,"tag":247,"props":1414,"children":1415},{"style":260},[1416],{"type":92,"value":294},{"type":86,"tag":247,"props":1418,"children":1419},{"style":287},[1420],{"type":92,"value":1194},{"type":86,"tag":247,"props":1422,"children":1423},{"style":260},[1424],{"type":92,"value":294},{"type":86,"tag":247,"props":1426,"children":1427},{"style":260},[1428],{"type":92,"value":407},{"type":86,"tag":247,"props":1430,"children":1431},{"style":266},[1432],{"type":92,"value":1304},{"type":86,"tag":247,"props":1434,"children":1435},{"style":260},[1436],{"type":92,"value":407},{"type":86,"tag":247,"props":1438,"children":1439},{"style":260},[1440],{"type":92,"value":421},{"type":86,"tag":247,"props":1442,"children":1443},{"class":249,"line":650},[1444,1449,1453,1457],{"type":86,"tag":247,"props":1445,"children":1446},{"style":428},[1447],{"type":92,"value":1448},"      ttl",{"type":86,"tag":247,"props":1450,"children":1451},{"style":260},[1452],{"type":92,"value":227},{"type":86,"tag":247,"props":1454,"children":1455},{"style":438},[1456],{"type":92,"value":441},{"type":86,"tag":247,"props":1458,"children":1459},{"style":260},[1460],{"type":92,"value":1461},",\n",{"type":86,"tag":247,"props":1463,"children":1464},{"class":249,"line":659},[1465,1470,1474,1478,1482,1487,1491,1495],{"type":86,"tag":247,"props":1466,"children":1467},{"style":428},[1468],{"type":92,"value":1469},"      tags",{"type":86,"tag":247,"props":1471,"children":1472},{"style":260},[1473],{"type":92,"value":227},{"type":86,"tag":247,"props":1475,"children":1476},{"style":428},[1477],{"type":92,"value":468},{"type":86,"tag":247,"props":1479,"children":1480},{"style":260},[1481],{"type":92,"value":294},{"type":86,"tag":247,"props":1483,"children":1484},{"style":287},[1485],{"type":92,"value":1486},"blog",{"type":86,"tag":247,"props":1488,"children":1489},{"style":260},[1490],{"type":92,"value":294},{"type":86,"tag":247,"props":1492,"children":1493},{"style":428},[1494],{"type":92,"value":502},{"type":86,"tag":247,"props":1496,"children":1497},{"style":260},[1498],{"type":92,"value":1461},{"type":86,"tag":247,"props":1500,"children":1501},{"class":249,"line":704},[1502,1507,1511],{"type":86,"tag":247,"props":1503,"children":1504},{"style":260},[1505],{"type":92,"value":1506},"    }",{"type":86,"tag":247,"props":1508,"children":1509},{"style":428},[1510],{"type":92,"value":167},{"type":86,"tag":247,"props":1512,"children":1513},{"style":260},[1514],{"type":92,"value":299},{"type":86,"tag":247,"props":1516,"children":1517},{"class":249,"line":712},[1518],{"type":86,"tag":247,"props":1519,"children":1520},{"emptyLinePlaceholder":306},[1521],{"type":92,"value":309},{"type":86,"tag":247,"props":1523,"children":1524},{"class":249,"line":721},[1525,1530,1534,1538,1542,1546,1551,1555],{"type":86,"tag":247,"props":1526,"children":1527},{"style":254},[1528],{"type":92,"value":1529},"    return",{"type":86,"tag":247,"props":1531,"children":1532},{"style":266},[1533],{"type":92,"value":1252},{"type":86,"tag":247,"props":1535,"children":1536},{"style":260},[1537],{"type":92,"value":379},{"type":86,"tag":247,"props":1539,"children":1540},{"style":332},[1541],{"type":92,"value":1261},{"type":86,"tag":247,"props":1543,"children":1544},{"style":428},[1545],{"type":92,"value":389},{"type":86,"tag":247,"props":1547,"children":1548},{"style":266},[1549],{"type":92,"value":1550},"posts",{"type":86,"tag":247,"props":1552,"children":1553},{"style":428},[1554],{"type":92,"value":167},{"type":86,"tag":247,"props":1556,"children":1557},{"style":260},[1558],{"type":92,"value":299},{"type":86,"tag":247,"props":1560,"children":1561},{"class":249,"line":765},[1562],{"type":86,"tag":247,"props":1563,"children":1564},{"style":260},[1565],{"type":92,"value":1566},"  },\n",{"type":86,"tag":247,"props":1568,"children":1570},{"class":249,"line":1569},21,[1571],{"type":86,"tag":247,"props":1572,"children":1573},{"style":260},[1574],{"type":92,"value":1575},"};\n",{"type":86,"tag":229,"props":1577,"children":1579},{"id":1578},"tag-expiration-from-server-action",[1580],{"type":92,"value":1581},"Tag Expiration from Server Action",{"type":86,"tag":236,"props":1583,"children":1585},{"className":238,"code":1584,"language":240,"meta":241,"style":241},"'use server';\nimport { getCache } from '@vercel\u002Ffunctions';\n\nexport async function invalidateBlog() {\n  await getCache().expireTag('blog');\n}\n",[1586],{"type":86,"tag":152,"props":1587,"children":1588},{"__ignoreMap":241},[1589,1609,1648,1655,1685,1733],{"type":86,"tag":247,"props":1590,"children":1591},{"class":249,"line":250},[1592,1596,1601,1605],{"type":86,"tag":247,"props":1593,"children":1594},{"style":260},[1595],{"type":92,"value":294},{"type":86,"tag":247,"props":1597,"children":1598},{"style":287},[1599],{"type":92,"value":1600},"use server",{"type":86,"tag":247,"props":1602,"children":1603},{"style":260},[1604],{"type":92,"value":294},{"type":86,"tag":247,"props":1606,"children":1607},{"style":260},[1608],{"type":92,"value":299},{"type":86,"tag":247,"props":1610,"children":1611},{"class":249,"line":302},[1612,1616,1620,1624,1628,1632,1636,1640,1644],{"type":86,"tag":247,"props":1613,"children":1614},{"style":254},[1615],{"type":92,"value":257},{"type":86,"tag":247,"props":1617,"children":1618},{"style":260},[1619],{"type":92,"value":263},{"type":86,"tag":247,"props":1621,"children":1622},{"style":266},[1623],{"type":92,"value":269},{"type":86,"tag":247,"props":1625,"children":1626},{"style":260},[1627],{"type":92,"value":274},{"type":86,"tag":247,"props":1629,"children":1630},{"style":254},[1631],{"type":92,"value":279},{"type":86,"tag":247,"props":1633,"children":1634},{"style":260},[1635],{"type":92,"value":284},{"type":86,"tag":247,"props":1637,"children":1638},{"style":287},[1639],{"type":92,"value":209},{"type":86,"tag":247,"props":1641,"children":1642},{"style":260},[1643],{"type":92,"value":294},{"type":86,"tag":247,"props":1645,"children":1646},{"style":260},[1647],{"type":92,"value":299},{"type":86,"tag":247,"props":1649,"children":1650},{"class":249,"line":312},[1651],{"type":86,"tag":247,"props":1652,"children":1653},{"emptyLinePlaceholder":306},[1654],{"type":92,"value":309},{"type":86,"tag":247,"props":1656,"children":1657},{"class":249,"line":346},[1658,1662,1667,1672,1677,1681],{"type":86,"tag":247,"props":1659,"children":1660},{"style":254},[1661],{"type":92,"value":1071},{"type":86,"tag":247,"props":1663,"children":1664},{"style":316},[1665],{"type":92,"value":1666}," async",{"type":86,"tag":247,"props":1668,"children":1669},{"style":316},[1670],{"type":92,"value":1671}," function",{"type":86,"tag":247,"props":1673,"children":1674},{"style":332},[1675],{"type":92,"value":1676}," invalidateBlog",{"type":86,"tag":247,"props":1678,"children":1679},{"style":260},[1680],{"type":92,"value":339},{"type":86,"tag":247,"props":1682,"children":1683},{"style":260},[1684],{"type":92,"value":421},{"type":86,"tag":247,"props":1686,"children":1687},{"class":249,"line":354},[1688,1693,1697,1701,1705,1709,1713,1717,1721,1725,1729],{"type":86,"tag":247,"props":1689,"children":1690},{"style":254},[1691],{"type":92,"value":1692},"  await",{"type":86,"tag":247,"props":1694,"children":1695},{"style":332},[1696],{"type":92,"value":269},{"type":86,"tag":247,"props":1698,"children":1699},{"style":428},[1700],{"type":92,"value":339},{"type":86,"tag":247,"props":1702,"children":1703},{"style":260},[1704],{"type":92,"value":379},{"type":86,"tag":247,"props":1706,"children":1707},{"style":332},[1708],{"type":92,"value":183},{"type":86,"tag":247,"props":1710,"children":1711},{"style":428},[1712],{"type":92,"value":389},{"type":86,"tag":247,"props":1714,"children":1715},{"style":260},[1716],{"type":92,"value":294},{"type":86,"tag":247,"props":1718,"children":1719},{"style":287},[1720],{"type":92,"value":1486},{"type":86,"tag":247,"props":1722,"children":1723},{"style":260},[1724],{"type":92,"value":294},{"type":86,"tag":247,"props":1726,"children":1727},{"style":428},[1728],{"type":92,"value":167},{"type":86,"tag":247,"props":1730,"children":1731},{"style":260},[1732],{"type":92,"value":299},{"type":86,"tag":247,"props":1734,"children":1735},{"class":249,"line":37},[1736],{"type":86,"tag":247,"props":1737,"children":1738},{"style":260},[1739],{"type":92,"value":1740},"}\n",{"type":86,"tag":101,"props":1742,"children":1744},{"id":1743},"cdn-cache-purging-functions",[1745],{"type":92,"value":1746},"CDN Cache Purging Functions",{"type":86,"tag":95,"props":1748,"children":1749},{},[1750,1752,1757],{"type":92,"value":1751},"These purge across ",{"type":86,"tag":113,"props":1753,"children":1754},{},[1755],{"type":92,"value":1756},"all three cache layers",{"type":92,"value":1758}," (CDN + Runtime Cache + Data Cache):",{"type":86,"tag":236,"props":1760,"children":1762},{"className":238,"code":1761,"language":240,"meta":241,"style":241},"import { invalidateByTag, dangerouslyDeleteByTag } from '@vercel\u002Ffunctions';\n\n\u002F\u002F Stale-while-revalidate: serves stale, revalidates in background\nawait invalidateByTag('blog-posts');\n\n\u002F\u002F Hard delete: next request blocks while fetching from origin (cache stampede risk)\nawait dangerouslyDeleteByTag('blog-posts', {\n  revalidationDeadlineSeconds: 3600,\n});\n",[1763],{"type":86,"tag":152,"props":1764,"children":1765},{"__ignoreMap":241},[1766,1815,1822,1830,1865,1872,1880,1915,1935],{"type":86,"tag":247,"props":1767,"children":1768},{"class":249,"line":250},[1769,1773,1777,1782,1786,1791,1795,1799,1803,1807,1811],{"type":86,"tag":247,"props":1770,"children":1771},{"style":254},[1772],{"type":92,"value":257},{"type":86,"tag":247,"props":1774,"children":1775},{"style":260},[1776],{"type":92,"value":263},{"type":86,"tag":247,"props":1778,"children":1779},{"style":266},[1780],{"type":92,"value":1781}," invalidateByTag",{"type":86,"tag":247,"props":1783,"children":1784},{"style":260},[1785],{"type":92,"value":407},{"type":86,"tag":247,"props":1787,"children":1788},{"style":266},[1789],{"type":92,"value":1790}," dangerouslyDeleteByTag",{"type":86,"tag":247,"props":1792,"children":1793},{"style":260},[1794],{"type":92,"value":274},{"type":86,"tag":247,"props":1796,"children":1797},{"style":254},[1798],{"type":92,"value":279},{"type":86,"tag":247,"props":1800,"children":1801},{"style":260},[1802],{"type":92,"value":284},{"type":86,"tag":247,"props":1804,"children":1805},{"style":287},[1806],{"type":92,"value":209},{"type":86,"tag":247,"props":1808,"children":1809},{"style":260},[1810],{"type":92,"value":294},{"type":86,"tag":247,"props":1812,"children":1813},{"style":260},[1814],{"type":92,"value":299},{"type":86,"tag":247,"props":1816,"children":1817},{"class":249,"line":302},[1818],{"type":86,"tag":247,"props":1819,"children":1820},{"emptyLinePlaceholder":306},[1821],{"type":92,"value":309},{"type":86,"tag":247,"props":1823,"children":1824},{"class":249,"line":312},[1825],{"type":86,"tag":247,"props":1826,"children":1827},{"style":358},[1828],{"type":92,"value":1829},"\u002F\u002F Stale-while-revalidate: serves stale, revalidates in background\n",{"type":86,"tag":247,"props":1831,"children":1832},{"class":249,"line":346},[1833,1837,1841,1845,1849,1853,1857,1861],{"type":86,"tag":247,"props":1834,"children":1835},{"style":254},[1836],{"type":92,"value":369},{"type":86,"tag":247,"props":1838,"children":1839},{"style":332},[1840],{"type":92,"value":1781},{"type":86,"tag":247,"props":1842,"children":1843},{"style":266},[1844],{"type":92,"value":389},{"type":86,"tag":247,"props":1846,"children":1847},{"style":260},[1848],{"type":92,"value":294},{"type":86,"tag":247,"props":1850,"children":1851},{"style":287},[1852],{"type":92,"value":1194},{"type":86,"tag":247,"props":1854,"children":1855},{"style":260},[1856],{"type":92,"value":294},{"type":86,"tag":247,"props":1858,"children":1859},{"style":266},[1860],{"type":92,"value":167},{"type":86,"tag":247,"props":1862,"children":1863},{"style":260},[1864],{"type":92,"value":299},{"type":86,"tag":247,"props":1866,"children":1867},{"class":249,"line":354},[1868],{"type":86,"tag":247,"props":1869,"children":1870},{"emptyLinePlaceholder":306},[1871],{"type":92,"value":309},{"type":86,"tag":247,"props":1873,"children":1874},{"class":249,"line":37},[1875],{"type":86,"tag":247,"props":1876,"children":1877},{"style":358},[1878],{"type":92,"value":1879},"\u002F\u002F Hard delete: next request blocks while fetching from origin (cache stampede risk)\n",{"type":86,"tag":247,"props":1881,"children":1882},{"class":249,"line":424},[1883,1887,1891,1895,1899,1903,1907,1911],{"type":86,"tag":247,"props":1884,"children":1885},{"style":254},[1886],{"type":92,"value":369},{"type":86,"tag":247,"props":1888,"children":1889},{"style":332},[1890],{"type":92,"value":1790},{"type":86,"tag":247,"props":1892,"children":1893},{"style":266},[1894],{"type":92,"value":389},{"type":86,"tag":247,"props":1896,"children":1897},{"style":260},[1898],{"type":92,"value":294},{"type":86,"tag":247,"props":1900,"children":1901},{"style":287},[1902],{"type":92,"value":1194},{"type":86,"tag":247,"props":1904,"children":1905},{"style":260},[1906],{"type":92,"value":294},{"type":86,"tag":247,"props":1908,"children":1909},{"style":260},[1910],{"type":92,"value":407},{"type":86,"tag":247,"props":1912,"children":1913},{"style":260},[1914],{"type":92,"value":421},{"type":86,"tag":247,"props":1916,"children":1917},{"class":249,"line":453},[1918,1923,1927,1931],{"type":86,"tag":247,"props":1919,"children":1920},{"style":428},[1921],{"type":92,"value":1922},"  revalidationDeadlineSeconds",{"type":86,"tag":247,"props":1924,"children":1925},{"style":260},[1926],{"type":92,"value":227},{"type":86,"tag":247,"props":1928,"children":1929},{"style":438},[1930],{"type":92,"value":441},{"type":86,"tag":247,"props":1932,"children":1933},{"style":260},[1934],{"type":92,"value":1461},{"type":86,"tag":247,"props":1936,"children":1937},{"class":249,"line":514},[1938,1942,1946],{"type":86,"tag":247,"props":1939,"children":1940},{"style":260},[1941],{"type":92,"value":555},{"type":86,"tag":247,"props":1943,"children":1944},{"style":266},[1945],{"type":92,"value":167},{"type":86,"tag":247,"props":1947,"children":1948},{"style":260},[1949],{"type":92,"value":299},{"type":86,"tag":95,"props":1951,"children":1952},{},[1953,1958],{"type":86,"tag":113,"props":1954,"children":1955},{},[1956],{"type":92,"value":1957},"Important distinction",{"type":92,"value":227},{"type":86,"tag":127,"props":1960,"children":1961},{},[1962,1973],{"type":86,"tag":131,"props":1963,"children":1964},{},[1965,1971],{"type":86,"tag":152,"props":1966,"children":1968},{"className":1967},[],[1969],{"type":92,"value":1970},"cache.expireTag()",{"type":92,"value":1972}," — operates on Runtime Cache only",{"type":86,"tag":131,"props":1974,"children":1975},{},[1976,1982,1984,1990],{"type":86,"tag":152,"props":1977,"children":1979},{"className":1978},[],[1980],{"type":92,"value":1981},"invalidateByTag()",{"type":92,"value":1983}," \u002F ",{"type":86,"tag":152,"props":1985,"children":1987},{"className":1986},[],[1988],{"type":92,"value":1989},"dangerouslyDeleteByTag()",{"type":92,"value":1991}," — purges CDN + Runtime + Data caches",{"type":86,"tag":101,"props":1993,"children":1995},{"id":1994},"nextjs-integration",[1996],{"type":92,"value":1997},"Next.js Integration",{"type":86,"tag":229,"props":1999,"children":2001},{"id":2000},"nextjs-16-use-cache-remote",[2002,2004,2010],{"type":92,"value":2003},"Next.js 16+ (",{"type":86,"tag":152,"props":2005,"children":2007},{"className":2006},[],[2008],{"type":92,"value":2009},"use cache: remote",{"type":92,"value":167},{"type":86,"tag":236,"props":2012,"children":2014},{"className":238,"code":2013,"language":240,"meta":241,"style":241},"\u002F\u002F next.config.ts\nconst nextConfig: NextConfig = { cacheComponents: true };\n",[2015],{"type":86,"tag":152,"props":2016,"children":2017},{"__ignoreMap":241},[2018,2026],{"type":86,"tag":247,"props":2019,"children":2020},{"class":249,"line":250},[2021],{"type":86,"tag":247,"props":2022,"children":2023},{"style":358},[2024],{"type":92,"value":2025},"\u002F\u002F next.config.ts\n",{"type":86,"tag":247,"props":2027,"children":2028},{"class":249,"line":302},[2029,2033,2038,2042,2047,2051,2055,2060,2064,2070],{"type":86,"tag":247,"props":2030,"children":2031},{"style":316},[2032],{"type":92,"value":319},{"type":86,"tag":247,"props":2034,"children":2035},{"style":266},[2036],{"type":92,"value":2037}," nextConfig",{"type":86,"tag":247,"props":2039,"children":2040},{"style":260},[2041],{"type":92,"value":227},{"type":86,"tag":247,"props":2043,"children":2044},{"style":1109},[2045],{"type":92,"value":2046}," NextConfig",{"type":86,"tag":247,"props":2048,"children":2049},{"style":260},[2050],{"type":92,"value":1137},{"type":86,"tag":247,"props":2052,"children":2053},{"style":260},[2054],{"type":92,"value":263},{"type":86,"tag":247,"props":2056,"children":2057},{"style":428},[2058],{"type":92,"value":2059}," cacheComponents",{"type":86,"tag":247,"props":2061,"children":2062},{"style":260},[2063],{"type":92,"value":227},{"type":86,"tag":247,"props":2065,"children":2067},{"style":2066},"--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC",[2068],{"type":92,"value":2069}," true",{"type":86,"tag":247,"props":2071,"children":2072},{"style":260},[2073],{"type":92,"value":2074}," };\n",{"type":86,"tag":236,"props":2076,"children":2078},{"className":238,"code":2077,"language":240,"meta":241,"style":241},"import { cacheLife, cacheTag } from 'next\u002Fcache';\n\nasync function getData() {\n  'use cache: remote'     \u002F\u002F stores in Vercel Runtime Cache\n  cacheTag('example-tag')\n  cacheLife({ expire: 3600 })\n  return fetch('https:\u002F\u002Fapi.example.com\u002Fdata').then(r => r.json());\n}\n",[2079],{"type":86,"tag":152,"props":2080,"children":2081},{"__ignoreMap":241},[2082,2132,2139,2164,2185,2215,2253,2326],{"type":86,"tag":247,"props":2083,"children":2084},{"class":249,"line":250},[2085,2089,2093,2098,2102,2107,2111,2115,2119,2124,2128],{"type":86,"tag":247,"props":2086,"children":2087},{"style":254},[2088],{"type":92,"value":257},{"type":86,"tag":247,"props":2090,"children":2091},{"style":260},[2092],{"type":92,"value":263},{"type":86,"tag":247,"props":2094,"children":2095},{"style":266},[2096],{"type":92,"value":2097}," cacheLife",{"type":86,"tag":247,"props":2099,"children":2100},{"style":260},[2101],{"type":92,"value":407},{"type":86,"tag":247,"props":2103,"children":2104},{"style":266},[2105],{"type":92,"value":2106}," cacheTag",{"type":86,"tag":247,"props":2108,"children":2109},{"style":260},[2110],{"type":92,"value":274},{"type":86,"tag":247,"props":2112,"children":2113},{"style":254},[2114],{"type":92,"value":279},{"type":86,"tag":247,"props":2116,"children":2117},{"style":260},[2118],{"type":92,"value":284},{"type":86,"tag":247,"props":2120,"children":2121},{"style":287},[2122],{"type":92,"value":2123},"next\u002Fcache",{"type":86,"tag":247,"props":2125,"children":2126},{"style":260},[2127],{"type":92,"value":294},{"type":86,"tag":247,"props":2129,"children":2130},{"style":260},[2131],{"type":92,"value":299},{"type":86,"tag":247,"props":2133,"children":2134},{"class":249,"line":302},[2135],{"type":86,"tag":247,"props":2136,"children":2137},{"emptyLinePlaceholder":306},[2138],{"type":92,"value":309},{"type":86,"tag":247,"props":2140,"children":2141},{"class":249,"line":312},[2142,2147,2151,2156,2160],{"type":86,"tag":247,"props":2143,"children":2144},{"style":316},[2145],{"type":92,"value":2146},"async",{"type":86,"tag":247,"props":2148,"children":2149},{"style":316},[2150],{"type":92,"value":1671},{"type":86,"tag":247,"props":2152,"children":2153},{"style":332},[2154],{"type":92,"value":2155}," getData",{"type":86,"tag":247,"props":2157,"children":2158},{"style":260},[2159],{"type":92,"value":339},{"type":86,"tag":247,"props":2161,"children":2162},{"style":260},[2163],{"type":92,"value":421},{"type":86,"tag":247,"props":2165,"children":2166},{"class":249,"line":346},[2167,2172,2176,2180],{"type":86,"tag":247,"props":2168,"children":2169},{"style":260},[2170],{"type":92,"value":2171},"  '",{"type":86,"tag":247,"props":2173,"children":2174},{"style":287},[2175],{"type":92,"value":2009},{"type":86,"tag":247,"props":2177,"children":2178},{"style":260},[2179],{"type":92,"value":294},{"type":86,"tag":247,"props":2181,"children":2182},{"style":358},[2183],{"type":92,"value":2184},"     \u002F\u002F stores in Vercel Runtime Cache\n",{"type":86,"tag":247,"props":2186,"children":2187},{"class":249,"line":354},[2188,2193,2197,2201,2206,2210],{"type":86,"tag":247,"props":2189,"children":2190},{"style":332},[2191],{"type":92,"value":2192},"  cacheTag",{"type":86,"tag":247,"props":2194,"children":2195},{"style":428},[2196],{"type":92,"value":389},{"type":86,"tag":247,"props":2198,"children":2199},{"style":260},[2200],{"type":92,"value":294},{"type":86,"tag":247,"props":2202,"children":2203},{"style":287},[2204],{"type":92,"value":2205},"example-tag",{"type":86,"tag":247,"props":2207,"children":2208},{"style":260},[2209],{"type":92,"value":294},{"type":86,"tag":247,"props":2211,"children":2212},{"style":428},[2213],{"type":92,"value":2214},")\n",{"type":86,"tag":247,"props":2216,"children":2217},{"class":249,"line":37},[2218,2223,2227,2232,2237,2241,2245,2249],{"type":86,"tag":247,"props":2219,"children":2220},{"style":332},[2221],{"type":92,"value":2222},"  cacheLife",{"type":86,"tag":247,"props":2224,"children":2225},{"style":428},[2226],{"type":92,"value":389},{"type":86,"tag":247,"props":2228,"children":2229},{"style":260},[2230],{"type":92,"value":2231},"{",{"type":86,"tag":247,"props":2233,"children":2234},{"style":428},[2235],{"type":92,"value":2236}," expire",{"type":86,"tag":247,"props":2238,"children":2239},{"style":260},[2240],{"type":92,"value":227},{"type":86,"tag":247,"props":2242,"children":2243},{"style":438},[2244],{"type":92,"value":441},{"type":86,"tag":247,"props":2246,"children":2247},{"style":260},[2248],{"type":92,"value":274},{"type":86,"tag":247,"props":2250,"children":2251},{"style":428},[2252],{"type":92,"value":2214},{"type":86,"tag":247,"props":2254,"children":2255},{"class":249,"line":424},[2256,2261,2265,2269,2273,2278,2282,2286,2290,2294,2298,2302,2306,2310,2314,2318,2322],{"type":86,"tag":247,"props":2257,"children":2258},{"style":254},[2259],{"type":92,"value":2260},"  return",{"type":86,"tag":247,"props":2262,"children":2263},{"style":332},[2264],{"type":92,"value":1093},{"type":86,"tag":247,"props":2266,"children":2267},{"style":428},[2268],{"type":92,"value":389},{"type":86,"tag":247,"props":2270,"children":2271},{"style":260},[2272],{"type":92,"value":294},{"type":86,"tag":247,"props":2274,"children":2275},{"style":287},[2276],{"type":92,"value":2277},"https:\u002F\u002Fapi.example.com\u002Fdata",{"type":86,"tag":247,"props":2279,"children":2280},{"style":260},[2281],{"type":92,"value":294},{"type":86,"tag":247,"props":2283,"children":2284},{"style":428},[2285],{"type":92,"value":167},{"type":86,"tag":247,"props":2287,"children":2288},{"style":260},[2289],{"type":92,"value":379},{"type":86,"tag":247,"props":2291,"children":2292},{"style":332},[2293],{"type":92,"value":1346},{"type":86,"tag":247,"props":2295,"children":2296},{"style":428},[2297],{"type":92,"value":389},{"type":86,"tag":247,"props":2299,"children":2300},{"style":958},[2301],{"type":92,"value":1355},{"type":86,"tag":247,"props":2303,"children":2304},{"style":316},[2305],{"type":92,"value":970},{"type":86,"tag":247,"props":2307,"children":2308},{"style":266},[2309],{"type":92,"value":1364},{"type":86,"tag":247,"props":2311,"children":2312},{"style":260},[2313],{"type":92,"value":379},{"type":86,"tag":247,"props":2315,"children":2316},{"style":332},[2317],{"type":92,"value":1261},{"type":86,"tag":247,"props":2319,"children":2320},{"style":428},[2321],{"type":92,"value":1377},{"type":86,"tag":247,"props":2323,"children":2324},{"style":260},[2325],{"type":92,"value":299},{"type":86,"tag":247,"props":2327,"children":2328},{"class":249,"line":453},[2329],{"type":86,"tag":247,"props":2330,"children":2331},{"style":260},[2332],{"type":92,"value":1740},{"type":86,"tag":127,"props":2334,"children":2335},{},[2336,2355],{"type":86,"tag":131,"props":2337,"children":2338},{},[2339,2345,2347,2353],{"type":86,"tag":152,"props":2340,"children":2342},{"className":2341},[],[2343],{"type":92,"value":2344},"'use cache'",{"type":92,"value":2346}," (no ",{"type":86,"tag":152,"props":2348,"children":2350},{"className":2349},[],[2351],{"type":92,"value":2352},": remote",{"type":92,"value":2354},") — in-memory only, ephemeral per instance",{"type":86,"tag":131,"props":2356,"children":2357},{},[2358,2364],{"type":86,"tag":152,"props":2359,"children":2361},{"className":2360},[],[2362],{"type":92,"value":2363},"'use cache: remote'",{"type":92,"value":2365}," — stores in Vercel Runtime Cache",{"type":86,"tag":229,"props":2367,"children":2369},{"id":2368},"nextjs-16-invalidation-apis",[2370],{"type":92,"value":2371},"Next.js 16 Invalidation APIs",{"type":86,"tag":2373,"props":2374,"children":2375},"table",{},[2376,2400],{"type":86,"tag":2377,"props":2378,"children":2379},"thead",{},[2380],{"type":86,"tag":2381,"props":2382,"children":2383},"tr",{},[2384,2390,2395],{"type":86,"tag":2385,"props":2386,"children":2387},"th",{},[2388],{"type":92,"value":2389},"Function",{"type":86,"tag":2385,"props":2391,"children":2392},{},[2393],{"type":92,"value":2394},"Context",{"type":86,"tag":2385,"props":2396,"children":2397},{},[2398],{"type":92,"value":2399},"Behavior",{"type":86,"tag":2401,"props":2402,"children":2403},"tbody",{},[2404,2427,2449],{"type":86,"tag":2381,"props":2405,"children":2406},{},[2407,2417,2422],{"type":86,"tag":2408,"props":2409,"children":2410},"td",{},[2411],{"type":86,"tag":152,"props":2412,"children":2414},{"className":2413},[],[2415],{"type":92,"value":2416},"updateTag(tag)",{"type":86,"tag":2408,"props":2418,"children":2419},{},[2420],{"type":92,"value":2421},"Server Actions only",{"type":86,"tag":2408,"props":2423,"children":2424},{},[2425],{"type":92,"value":2426},"Immediate expiration, read-your-own-writes",{"type":86,"tag":2381,"props":2428,"children":2429},{},[2430,2439,2444],{"type":86,"tag":2408,"props":2431,"children":2432},{},[2433],{"type":86,"tag":152,"props":2434,"children":2436},{"className":2435},[],[2437],{"type":92,"value":2438},"revalidateTag(tag, 'max')",{"type":86,"tag":2408,"props":2440,"children":2441},{},[2442],{"type":92,"value":2443},"Server Actions + Route Handlers",{"type":86,"tag":2408,"props":2445,"children":2446},{},[2447],{"type":92,"value":2448},"Stale-while-revalidate (recommended)",{"type":86,"tag":2381,"props":2450,"children":2451},{},[2452,2461,2466],{"type":86,"tag":2408,"props":2453,"children":2454},{},[2455],{"type":86,"tag":152,"props":2456,"children":2458},{"className":2457},[],[2459],{"type":92,"value":2460},"revalidateTag(tag, { expire: 0 })",{"type":86,"tag":2408,"props":2462,"children":2463},{},[2464],{"type":92,"value":2465},"Route Handlers (webhooks)",{"type":86,"tag":2408,"props":2467,"children":2468},{},[2469],{"type":92,"value":2470},"Immediate expiration from external triggers",{"type":86,"tag":95,"props":2472,"children":2473},{},[2474,2479,2481,2487,2489,2495],{"type":86,"tag":113,"props":2475,"children":2476},{},[2477],{"type":92,"value":2478},"Important",{"type":92,"value":2480},": Single-argument ",{"type":86,"tag":152,"props":2482,"children":2484},{"className":2483},[],[2485],{"type":92,"value":2486},"revalidateTag(tag)",{"type":92,"value":2488}," is deprecated in Next.js 16. Always pass a ",{"type":86,"tag":152,"props":2490,"children":2492},{"className":2491},[],[2493],{"type":92,"value":2494},"cacheLife",{"type":92,"value":2496}," profile as the second argument.",{"type":86,"tag":229,"props":2498,"children":2500},{"id":2499},"runtime-cache-vs-isr-isolation",[2501],{"type":92,"value":2502},"Runtime Cache vs ISR Isolation",{"type":86,"tag":127,"props":2504,"children":2505},{},[2506,2518,2535,2560],{"type":86,"tag":131,"props":2507,"children":2508},{},[2509,2511,2516],{"type":92,"value":2510},"Runtime Cache tags do ",{"type":86,"tag":113,"props":2512,"children":2513},{},[2514],{"type":92,"value":2515},"NOT",{"type":92,"value":2517}," apply to ISR pages",{"type":86,"tag":131,"props":2519,"children":2520},{},[2521,2527,2529,2533],{"type":86,"tag":152,"props":2522,"children":2524},{"className":2523},[],[2525],{"type":92,"value":2526},"cache.expireTag",{"type":92,"value":2528}," does ",{"type":86,"tag":113,"props":2530,"children":2531},{},[2532],{"type":92,"value":2515},{"type":92,"value":2534}," invalidate ISR cache",{"type":86,"tag":131,"props":2536,"children":2537},{},[2538,2540,2546,2547,2553,2554,2558],{"type":92,"value":2539},"Next.js ",{"type":86,"tag":152,"props":2541,"children":2543},{"className":2542},[],[2544],{"type":92,"value":2545},"revalidatePath",{"type":92,"value":1983},{"type":86,"tag":152,"props":2548,"children":2550},{"className":2549},[],[2551],{"type":92,"value":2552},"revalidateTag",{"type":92,"value":2528},{"type":86,"tag":113,"props":2555,"children":2556},{},[2557],{"type":92,"value":2515},{"type":92,"value":2559}," invalidate Runtime Cache",{"type":86,"tag":131,"props":2561,"children":2562},{},[2563,2565,2571],{"type":92,"value":2564},"To manage both, use same tag and purge via ",{"type":86,"tag":152,"props":2566,"children":2568},{"className":2567},[],[2569],{"type":92,"value":2570},"invalidateByTag",{"type":92,"value":2572}," (hits all cache layers)",{"type":86,"tag":101,"props":2574,"children":2576},{"id":2575},"cli-cache-commands",[2577],{"type":92,"value":2578},"CLI Cache Commands",{"type":86,"tag":236,"props":2580,"children":2584},{"className":2581,"code":2582,"language":2583,"meta":241,"style":241},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Purge all cached data\nvercel cache purge                    # CDN + Data cache\nvercel cache purge --type cdn         # CDN only\nvercel cache purge --type data        # Data cache only\nvercel cache purge --yes              # skip confirmation\n\n# Invalidate by tag (stale-while-revalidate)\nvercel cache invalidate --tag blog-posts,user-profiles\n\n# Hard delete by tag (blocks until revalidated)\nvercel cache dangerously-delete --tag blog-posts\nvercel cache dangerously-delete --tag blog-posts --revalidation-deadline-seconds 3600\n\n# Image invalidation\nvercel cache invalidate --srcimg \u002Fimages\u002Fhero.jpg\n","bash",[2585],{"type":86,"tag":152,"props":2586,"children":2587},{"__ignoreMap":241},[2588,2596,2617,2647,2676,2701,2708,2716,2742,2749,2757,2782,2816,2823,2831],{"type":86,"tag":247,"props":2589,"children":2590},{"class":249,"line":250},[2591],{"type":86,"tag":247,"props":2592,"children":2593},{"style":358},[2594],{"type":92,"value":2595},"# Purge all cached data\n",{"type":86,"tag":247,"props":2597,"children":2598},{"class":249,"line":302},[2599,2603,2607,2612],{"type":86,"tag":247,"props":2600,"children":2601},{"style":1109},[2602],{"type":92,"value":8},{"type":86,"tag":247,"props":2604,"children":2605},{"style":287},[2606],{"type":92,"value":374},{"type":86,"tag":247,"props":2608,"children":2609},{"style":287},[2610],{"type":92,"value":2611}," purge",{"type":86,"tag":247,"props":2613,"children":2614},{"style":358},[2615],{"type":92,"value":2616},"                    # CDN + Data cache\n",{"type":86,"tag":247,"props":2618,"children":2619},{"class":249,"line":312},[2620,2624,2628,2632,2637,2642],{"type":86,"tag":247,"props":2621,"children":2622},{"style":1109},[2623],{"type":92,"value":8},{"type":86,"tag":247,"props":2625,"children":2626},{"style":287},[2627],{"type":92,"value":374},{"type":86,"tag":247,"props":2629,"children":2630},{"style":287},[2631],{"type":92,"value":2611},{"type":86,"tag":247,"props":2633,"children":2634},{"style":287},[2635],{"type":92,"value":2636}," --type",{"type":86,"tag":247,"props":2638,"children":2639},{"style":287},[2640],{"type":92,"value":2641}," cdn",{"type":86,"tag":247,"props":2643,"children":2644},{"style":358},[2645],{"type":92,"value":2646},"         # CDN only\n",{"type":86,"tag":247,"props":2648,"children":2649},{"class":249,"line":346},[2650,2654,2658,2662,2666,2671],{"type":86,"tag":247,"props":2651,"children":2652},{"style":1109},[2653],{"type":92,"value":8},{"type":86,"tag":247,"props":2655,"children":2656},{"style":287},[2657],{"type":92,"value":374},{"type":86,"tag":247,"props":2659,"children":2660},{"style":287},[2661],{"type":92,"value":2611},{"type":86,"tag":247,"props":2663,"children":2664},{"style":287},[2665],{"type":92,"value":2636},{"type":86,"tag":247,"props":2667,"children":2668},{"style":287},[2669],{"type":92,"value":2670}," data",{"type":86,"tag":247,"props":2672,"children":2673},{"style":358},[2674],{"type":92,"value":2675},"        # Data cache only\n",{"type":86,"tag":247,"props":2677,"children":2678},{"class":249,"line":354},[2679,2683,2687,2691,2696],{"type":86,"tag":247,"props":2680,"children":2681},{"style":1109},[2682],{"type":92,"value":8},{"type":86,"tag":247,"props":2684,"children":2685},{"style":287},[2686],{"type":92,"value":374},{"type":86,"tag":247,"props":2688,"children":2689},{"style":287},[2690],{"type":92,"value":2611},{"type":86,"tag":247,"props":2692,"children":2693},{"style":287},[2694],{"type":92,"value":2695}," --yes",{"type":86,"tag":247,"props":2697,"children":2698},{"style":358},[2699],{"type":92,"value":2700},"              # skip confirmation\n",{"type":86,"tag":247,"props":2702,"children":2703},{"class":249,"line":37},[2704],{"type":86,"tag":247,"props":2705,"children":2706},{"emptyLinePlaceholder":306},[2707],{"type":92,"value":309},{"type":86,"tag":247,"props":2709,"children":2710},{"class":249,"line":424},[2711],{"type":86,"tag":247,"props":2712,"children":2713},{"style":358},[2714],{"type":92,"value":2715},"# Invalidate by tag (stale-while-revalidate)\n",{"type":86,"tag":247,"props":2717,"children":2718},{"class":249,"line":453},[2719,2723,2727,2732,2737],{"type":86,"tag":247,"props":2720,"children":2721},{"style":1109},[2722],{"type":92,"value":8},{"type":86,"tag":247,"props":2724,"children":2725},{"style":287},[2726],{"type":92,"value":374},{"type":86,"tag":247,"props":2728,"children":2729},{"style":287},[2730],{"type":92,"value":2731}," invalidate",{"type":86,"tag":247,"props":2733,"children":2734},{"style":287},[2735],{"type":92,"value":2736}," --tag",{"type":86,"tag":247,"props":2738,"children":2739},{"style":287},[2740],{"type":92,"value":2741}," blog-posts,user-profiles\n",{"type":86,"tag":247,"props":2743,"children":2744},{"class":249,"line":514},[2745],{"type":86,"tag":247,"props":2746,"children":2747},{"emptyLinePlaceholder":306},[2748],{"type":92,"value":309},{"type":86,"tag":247,"props":2750,"children":2751},{"class":249,"line":549},[2752],{"type":86,"tag":247,"props":2753,"children":2754},{"style":358},[2755],{"type":92,"value":2756},"# Hard delete by tag (blocks until revalidated)\n",{"type":86,"tag":247,"props":2758,"children":2759},{"class":249,"line":566},[2760,2764,2768,2773,2777],{"type":86,"tag":247,"props":2761,"children":2762},{"style":1109},[2763],{"type":92,"value":8},{"type":86,"tag":247,"props":2765,"children":2766},{"style":287},[2767],{"type":92,"value":374},{"type":86,"tag":247,"props":2769,"children":2770},{"style":287},[2771],{"type":92,"value":2772}," dangerously-delete",{"type":86,"tag":247,"props":2774,"children":2775},{"style":287},[2776],{"type":92,"value":2736},{"type":86,"tag":247,"props":2778,"children":2779},{"style":287},[2780],{"type":92,"value":2781}," blog-posts\n",{"type":86,"tag":247,"props":2783,"children":2784},{"class":249,"line":574},[2785,2789,2793,2797,2801,2806,2811],{"type":86,"tag":247,"props":2786,"children":2787},{"style":1109},[2788],{"type":92,"value":8},{"type":86,"tag":247,"props":2790,"children":2791},{"style":287},[2792],{"type":92,"value":374},{"type":86,"tag":247,"props":2794,"children":2795},{"style":287},[2796],{"type":92,"value":2772},{"type":86,"tag":247,"props":2798,"children":2799},{"style":287},[2800],{"type":92,"value":2736},{"type":86,"tag":247,"props":2802,"children":2803},{"style":287},[2804],{"type":92,"value":2805}," blog-posts",{"type":86,"tag":247,"props":2807,"children":2808},{"style":287},[2809],{"type":92,"value":2810}," --revalidation-deadline-seconds",{"type":86,"tag":247,"props":2812,"children":2813},{"style":438},[2814],{"type":92,"value":2815}," 3600\n",{"type":86,"tag":247,"props":2817,"children":2818},{"class":249,"line":583},[2819],{"type":86,"tag":247,"props":2820,"children":2821},{"emptyLinePlaceholder":306},[2822],{"type":92,"value":309},{"type":86,"tag":247,"props":2824,"children":2825},{"class":249,"line":642},[2826],{"type":86,"tag":247,"props":2827,"children":2828},{"style":358},[2829],{"type":92,"value":2830},"# Image invalidation\n",{"type":86,"tag":247,"props":2832,"children":2833},{"class":249,"line":650},[2834,2838,2842,2846,2851],{"type":86,"tag":247,"props":2835,"children":2836},{"style":1109},[2837],{"type":92,"value":8},{"type":86,"tag":247,"props":2839,"children":2840},{"style":287},[2841],{"type":92,"value":374},{"type":86,"tag":247,"props":2843,"children":2844},{"style":287},[2845],{"type":92,"value":2731},{"type":86,"tag":247,"props":2847,"children":2848},{"style":287},[2849],{"type":92,"value":2850}," --srcimg",{"type":86,"tag":247,"props":2852,"children":2853},{"style":287},[2854],{"type":92,"value":2855}," \u002Fimages\u002Fhero.jpg\n",{"type":86,"tag":95,"props":2857,"children":2858},{},[2859,2861,2867,2869,2875],{"type":92,"value":2860},"Note: ",{"type":86,"tag":152,"props":2862,"children":2864},{"className":2863},[],[2865],{"type":92,"value":2866},"--tag",{"type":92,"value":2868}," and ",{"type":86,"tag":152,"props":2870,"children":2872},{"className":2871},[],[2873],{"type":92,"value":2874},"--srcimg",{"type":92,"value":2876}," cannot be used together.",{"type":86,"tag":101,"props":2878,"children":2880},{"id":2879},"cdn-cache-tags",[2881],{"type":92,"value":2882},"CDN Cache Tags",{"type":86,"tag":95,"props":2884,"children":2885},{},[2886],{"type":92,"value":2887},"Add tags to CDN cached responses for later invalidation:",{"type":86,"tag":236,"props":2889,"children":2891},{"className":238,"code":2890,"language":240,"meta":241,"style":241},"import { addCacheTag } from '@vercel\u002Ffunctions';\n\n\u002F\u002F Via helper\naddCacheTag('product-123');\n\n\u002F\u002F Via response header\nreturn Response.json(product, {\n  headers: {\n    'Vercel-CDN-Cache-Control': 'public, max-age=86400',\n    'Vercel-Cache-Tag': 'product-123,products',\n  },\n});\n",[2892],{"type":86,"tag":152,"props":2893,"children":2894},{"__ignoreMap":241},[2895,2935,2942,2950,2983,2990,2998,3031,3047,3085,3122,3129],{"type":86,"tag":247,"props":2896,"children":2897},{"class":249,"line":250},[2898,2902,2906,2911,2915,2919,2923,2927,2931],{"type":86,"tag":247,"props":2899,"children":2900},{"style":254},[2901],{"type":92,"value":257},{"type":86,"tag":247,"props":2903,"children":2904},{"style":260},[2905],{"type":92,"value":263},{"type":86,"tag":247,"props":2907,"children":2908},{"style":266},[2909],{"type":92,"value":2910}," addCacheTag",{"type":86,"tag":247,"props":2912,"children":2913},{"style":260},[2914],{"type":92,"value":274},{"type":86,"tag":247,"props":2916,"children":2917},{"style":254},[2918],{"type":92,"value":279},{"type":86,"tag":247,"props":2920,"children":2921},{"style":260},[2922],{"type":92,"value":284},{"type":86,"tag":247,"props":2924,"children":2925},{"style":287},[2926],{"type":92,"value":209},{"type":86,"tag":247,"props":2928,"children":2929},{"style":260},[2930],{"type":92,"value":294},{"type":86,"tag":247,"props":2932,"children":2933},{"style":260},[2934],{"type":92,"value":299},{"type":86,"tag":247,"props":2936,"children":2937},{"class":249,"line":302},[2938],{"type":86,"tag":247,"props":2939,"children":2940},{"emptyLinePlaceholder":306},[2941],{"type":92,"value":309},{"type":86,"tag":247,"props":2943,"children":2944},{"class":249,"line":312},[2945],{"type":86,"tag":247,"props":2946,"children":2947},{"style":358},[2948],{"type":92,"value":2949},"\u002F\u002F Via helper\n",{"type":86,"tag":247,"props":2951,"children":2952},{"class":249,"line":346},[2953,2958,2962,2966,2971,2975,2979],{"type":86,"tag":247,"props":2954,"children":2955},{"style":332},[2956],{"type":92,"value":2957},"addCacheTag",{"type":86,"tag":247,"props":2959,"children":2960},{"style":266},[2961],{"type":92,"value":389},{"type":86,"tag":247,"props":2963,"children":2964},{"style":260},[2965],{"type":92,"value":294},{"type":86,"tag":247,"props":2967,"children":2968},{"style":287},[2969],{"type":92,"value":2970},"product-123",{"type":86,"tag":247,"props":2972,"children":2973},{"style":260},[2974],{"type":92,"value":294},{"type":86,"tag":247,"props":2976,"children":2977},{"style":266},[2978],{"type":92,"value":167},{"type":86,"tag":247,"props":2980,"children":2981},{"style":260},[2982],{"type":92,"value":299},{"type":86,"tag":247,"props":2984,"children":2985},{"class":249,"line":354},[2986],{"type":86,"tag":247,"props":2987,"children":2988},{"emptyLinePlaceholder":306},[2989],{"type":92,"value":309},{"type":86,"tag":247,"props":2991,"children":2992},{"class":249,"line":37},[2993],{"type":86,"tag":247,"props":2994,"children":2995},{"style":358},[2996],{"type":92,"value":2997},"\u002F\u002F Via response header\n",{"type":86,"tag":247,"props":2999,"children":3000},{"class":249,"line":424},[3001,3006,3010,3014,3018,3023,3027],{"type":86,"tag":247,"props":3002,"children":3003},{"style":254},[3004],{"type":92,"value":3005},"return",{"type":86,"tag":247,"props":3007,"children":3008},{"style":266},[3009],{"type":92,"value":1252},{"type":86,"tag":247,"props":3011,"children":3012},{"style":260},[3013],{"type":92,"value":379},{"type":86,"tag":247,"props":3015,"children":3016},{"style":332},[3017],{"type":92,"value":1261},{"type":86,"tag":247,"props":3019,"children":3020},{"style":266},[3021],{"type":92,"value":3022},"(product",{"type":86,"tag":247,"props":3024,"children":3025},{"style":260},[3026],{"type":92,"value":407},{"type":86,"tag":247,"props":3028,"children":3029},{"style":260},[3030],{"type":92,"value":421},{"type":86,"tag":247,"props":3032,"children":3033},{"class":249,"line":453},[3034,3039,3043],{"type":86,"tag":247,"props":3035,"children":3036},{"style":428},[3037],{"type":92,"value":3038},"  headers",{"type":86,"tag":247,"props":3040,"children":3041},{"style":260},[3042],{"type":92,"value":227},{"type":86,"tag":247,"props":3044,"children":3045},{"style":260},[3046],{"type":92,"value":421},{"type":86,"tag":247,"props":3048,"children":3049},{"class":249,"line":514},[3050,3055,3060,3064,3068,3072,3077,3081],{"type":86,"tag":247,"props":3051,"children":3052},{"style":260},[3053],{"type":92,"value":3054},"    '",{"type":86,"tag":247,"props":3056,"children":3057},{"style":428},[3058],{"type":92,"value":3059},"Vercel-CDN-Cache-Control",{"type":86,"tag":247,"props":3061,"children":3062},{"style":260},[3063],{"type":92,"value":294},{"type":86,"tag":247,"props":3065,"children":3066},{"style":260},[3067],{"type":92,"value":227},{"type":86,"tag":247,"props":3069,"children":3070},{"style":260},[3071],{"type":92,"value":284},{"type":86,"tag":247,"props":3073,"children":3074},{"style":287},[3075],{"type":92,"value":3076},"public, max-age=86400",{"type":86,"tag":247,"props":3078,"children":3079},{"style":260},[3080],{"type":92,"value":294},{"type":86,"tag":247,"props":3082,"children":3083},{"style":260},[3084],{"type":92,"value":1461},{"type":86,"tag":247,"props":3086,"children":3087},{"class":249,"line":549},[3088,3092,3097,3101,3105,3109,3114,3118],{"type":86,"tag":247,"props":3089,"children":3090},{"style":260},[3091],{"type":92,"value":3054},{"type":86,"tag":247,"props":3093,"children":3094},{"style":428},[3095],{"type":92,"value":3096},"Vercel-Cache-Tag",{"type":86,"tag":247,"props":3098,"children":3099},{"style":260},[3100],{"type":92,"value":294},{"type":86,"tag":247,"props":3102,"children":3103},{"style":260},[3104],{"type":92,"value":227},{"type":86,"tag":247,"props":3106,"children":3107},{"style":260},[3108],{"type":92,"value":284},{"type":86,"tag":247,"props":3110,"children":3111},{"style":287},[3112],{"type":92,"value":3113},"product-123,products",{"type":86,"tag":247,"props":3115,"children":3116},{"style":260},[3117],{"type":92,"value":294},{"type":86,"tag":247,"props":3119,"children":3120},{"style":260},[3121],{"type":92,"value":1461},{"type":86,"tag":247,"props":3123,"children":3124},{"class":249,"line":566},[3125],{"type":86,"tag":247,"props":3126,"children":3127},{"style":260},[3128],{"type":92,"value":1566},{"type":86,"tag":247,"props":3130,"children":3131},{"class":249,"line":574},[3132,3136,3140],{"type":86,"tag":247,"props":3133,"children":3134},{"style":260},[3135],{"type":92,"value":555},{"type":86,"tag":247,"props":3137,"children":3138},{"style":266},[3139],{"type":92,"value":167},{"type":86,"tag":247,"props":3141,"children":3142},{"style":260},[3143],{"type":92,"value":299},{"type":86,"tag":101,"props":3145,"children":3147},{"id":3146},"limits",[3148],{"type":92,"value":3149},"Limits",{"type":86,"tag":2373,"props":3151,"children":3152},{},[3153,3169],{"type":86,"tag":2377,"props":3154,"children":3155},{},[3156],{"type":86,"tag":2381,"props":3157,"children":3158},{},[3159,3164],{"type":86,"tag":2385,"props":3160,"children":3161},{},[3162],{"type":92,"value":3163},"Property",{"type":86,"tag":2385,"props":3165,"children":3166},{},[3167],{"type":92,"value":3168},"Limit",{"type":86,"tag":2401,"props":3170,"children":3171},{},[3172,3185,3198,3211,3224],{"type":86,"tag":2381,"props":3173,"children":3174},{},[3175,3180],{"type":86,"tag":2408,"props":3176,"children":3177},{},[3178],{"type":92,"value":3179},"Item size",{"type":86,"tag":2408,"props":3181,"children":3182},{},[3183],{"type":92,"value":3184},"2 MB",{"type":86,"tag":2381,"props":3186,"children":3187},{},[3188,3193],{"type":86,"tag":2408,"props":3189,"children":3190},{},[3191],{"type":92,"value":3192},"Tags per Runtime Cache item",{"type":86,"tag":2408,"props":3194,"children":3195},{},[3196],{"type":92,"value":3197},"64",{"type":86,"tag":2381,"props":3199,"children":3200},{},[3201,3206],{"type":86,"tag":2408,"props":3202,"children":3203},{},[3204],{"type":92,"value":3205},"Tags per CDN item",{"type":86,"tag":2408,"props":3207,"children":3208},{},[3209],{"type":92,"value":3210},"128",{"type":86,"tag":2381,"props":3212,"children":3213},{},[3214,3219],{"type":86,"tag":2408,"props":3215,"children":3216},{},[3217],{"type":92,"value":3218},"Max tag length",{"type":86,"tag":2408,"props":3220,"children":3221},{},[3222],{"type":92,"value":3223},"256 bytes",{"type":86,"tag":2381,"props":3225,"children":3226},{},[3227,3232],{"type":86,"tag":2408,"props":3228,"children":3229},{},[3230],{"type":92,"value":3231},"Tags per bulk REST API call",{"type":86,"tag":2408,"props":3233,"children":3234},{},[3235],{"type":92,"value":3236},"16",{"type":86,"tag":95,"props":3238,"children":3239},{},[3240,3242,3247,3248,3253],{"type":92,"value":3241},"Tags are ",{"type":86,"tag":113,"props":3243,"children":3244},{},[3245],{"type":92,"value":3246},"case-sensitive",{"type":92,"value":2868},{"type":86,"tag":113,"props":3249,"children":3250},{},[3251],{"type":92,"value":3252},"cannot contain commas",{"type":92,"value":379},{"type":86,"tag":101,"props":3255,"children":3257},{"id":3256},"observability",[3258],{"type":92,"value":3259},"Observability",{"type":86,"tag":95,"props":3261,"children":3262},{},[3263,3265,3270,3272,3277],{"type":92,"value":3264},"Monitor hit rates, invalidation patterns, and storage usage in the Vercel Dashboard under ",{"type":86,"tag":113,"props":3266,"children":3267},{},[3268],{"type":92,"value":3269},"Observability → Runtime Cache",{"type":92,"value":3271},". The CDN dashboard (March 5, 2026) provides a unified view of global traffic distribution, cache performance metrics, a redesigned purging interface, and ",{"type":86,"tag":113,"props":3273,"children":3274},{},[3275],{"type":92,"value":3276},"project-level routing",{"type":92,"value":3278}," — update response headers or rewrite to external APIs without triggering a new deployment. Project-level routes are available on all plans and take effect instantly.",{"type":86,"tag":101,"props":3280,"children":3282},{"id":3281},"when-to-use",[3283],{"type":92,"value":3284},"When to Use",{"type":86,"tag":127,"props":3286,"children":3287},{},[3288,3293,3298,3303],{"type":86,"tag":131,"props":3289,"children":3290},{},[3291],{"type":92,"value":3292},"Caching API responses or computed data across functions in a region",{"type":86,"tag":131,"props":3294,"children":3295},{},[3296],{"type":92,"value":3297},"Tag-based invalidation when content changes (CMS webhook → expire tag)",{"type":86,"tag":131,"props":3299,"children":3300},{},[3301],{"type":92,"value":3302},"Reducing database load for frequently accessed data",{"type":86,"tag":131,"props":3304,"children":3305},{},[3306],{"type":92,"value":3307},"Cross-function data sharing within a region",{"type":86,"tag":101,"props":3309,"children":3311},{"id":3310},"when-not-to-use",[3312],{"type":92,"value":3313},"When NOT to Use",{"type":86,"tag":127,"props":3315,"children":3316},{},[3317,3328,3333,3352,3357],{"type":86,"tag":131,"props":3318,"children":3319},{},[3320,3322,3327],{"type":92,"value":3321},"Framework-level page caching → use Next.js Cache Components (",{"type":86,"tag":152,"props":3323,"children":3325},{"className":3324},[],[3326],{"type":92,"value":2344},{"type":92,"value":167},{"type":86,"tag":131,"props":3329,"children":3330},{},[3331],{"type":92,"value":3332},"Persistent storage → use a database (Neon, Upstash)",{"type":86,"tag":131,"props":3334,"children":3335},{},[3336,3338,3344,3345,3350],{"type":92,"value":3337},"CDN-level full response caching → use ",{"type":86,"tag":152,"props":3339,"children":3341},{"className":3340},[],[3342],{"type":92,"value":3343},"Cache-Control",{"type":92,"value":1983},{"type":86,"tag":152,"props":3346,"children":3348},{"className":3347},[],[3349],{"type":92,"value":3059},{"type":92,"value":3351}," headers",{"type":86,"tag":131,"props":3353,"children":3354},{},[3355],{"type":92,"value":3356},"Cross-region shared state → use a database",{"type":86,"tag":131,"props":3358,"children":3359},{},[3360],{"type":92,"value":3361},"User-specific data that differs per request",{"type":86,"tag":101,"props":3363,"children":3365},{"id":3364},"references",[3366],{"type":92,"value":3367},"References",{"type":86,"tag":127,"props":3369,"children":3370},{},[3371,3384,3395,3406],{"type":86,"tag":131,"props":3372,"children":3373},{},[3374,3376],{"type":92,"value":3375},"📖 docs: ",{"type":86,"tag":3377,"props":3378,"children":3382},"a",{"href":3379,"rel":3380},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fruntime-cache",[3381],"nofollow",[3383],{"type":92,"value":3379},{"type":86,"tag":131,"props":3385,"children":3386},{},[3387,3389],{"type":92,"value":3388},"📖 changelog: ",{"type":86,"tag":3377,"props":3390,"children":3393},{"href":3391,"rel":3392},"https:\u002F\u002Fvercel.com\u002Fchangelog\u002Fintroducing-the-runtime-cache-api",[3381],[3394],{"type":92,"value":3391},{"type":86,"tag":131,"props":3396,"children":3397},{},[3398,3400],{"type":92,"value":3399},"📖 CLI cache: ",{"type":86,"tag":3377,"props":3401,"children":3404},{"href":3402,"rel":3403},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcli\u002Fcache",[3381],[3405],{"type":92,"value":3402},{"type":86,"tag":131,"props":3407,"children":3408},{},[3409,3411],{"type":92,"value":3410},"📖 CDN cache purging: ",{"type":86,"tag":3377,"props":3412,"children":3415},{"href":3413,"rel":3414},"https:\u002F\u002Fvercel.com\u002Fdocs\u002Fcdn-cache\u002Fpurge",[3381],[3416],{"type":92,"value":3413},{"type":86,"tag":3418,"props":3419,"children":3420},"style",{},[3421],{"type":92,"value":3422},"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":3424,"total":3533},[3425,3442,3462,3479,3490,3507,3522],{"slug":3426,"name":3426,"fn":3427,"description":3428,"org":3429,"tags":3430,"stars":23,"repoUrl":24,"updatedAt":3441},"ai-gateway","configure and manage 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},[3431,3434,3437,3440],{"name":3432,"slug":3433,"type":15},"AI Infrastructure","ai-infrastructure",{"name":3435,"slug":3436,"type":15},"Cost Optimization","cost-optimization",{"name":3438,"slug":3439,"type":15},"LLM","llm",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:06.57787",{"slug":3443,"name":3443,"fn":3444,"description":3445,"org":3446,"tags":3447,"stars":23,"repoUrl":24,"updatedAt":3461},"auth","integrate authentication in Next.js apps","Authentication integration guidance — Clerk (native Vercel Marketplace), Descope, and Auth0 setup for Next.js applications. Covers middleware auth patterns, sign-in\u002Fsign-up flows, and Marketplace provisioning. Use when implementing user authentication.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3448,3451,3454,3457,3460],{"name":3449,"slug":3450,"type":15},"Auth0","auth0",{"name":3452,"slug":3453,"type":15},"Authentication","authentication",{"name":3455,"slug":3456,"type":15},"Next.js","next-js",{"name":3458,"slug":3459,"type":15},"Security","security",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:17.050565",{"slug":3463,"name":3463,"fn":3464,"description":3465,"org":3466,"tags":3467,"stars":23,"repoUrl":24,"updatedAt":3478},"bootstrap","bootstrap Vercel-linked repositories","Project bootstrapping orchestrator for repos that depend on Vercel-linked resources (databases, auth, and managed integrations). Use when setting up or repairing a repository so linking, environment provisioning, env pulls, and first-run db\u002Fdev commands happen in the correct safe order.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3468,3471,3474,3477],{"name":3469,"slug":3470,"type":15},"Configuration","configuration",{"name":3472,"slug":3473,"type":15},"Deployment","deployment",{"name":3475,"slug":3476,"type":15},"Local Development","local-development",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:18.297868",{"slug":3480,"name":3480,"fn":3481,"description":3482,"org":3483,"tags":3484,"stars":23,"repoUrl":24,"updatedAt":3489},"cdn-caching","debug Vercel CDN caching behavior","Debug Vercel CDN caching — cache hit rate, stale content, revalidation behavior, ISR + PPR, per-request cache reasons (cacheReason) and PPR state (ppr_state), and costs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3485,3486,3487,3488],{"name":21,"slug":22,"type":15},{"name":3259,"slug":3256,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:34.628944",{"slug":3491,"name":3491,"fn":3492,"description":3493,"org":3494,"tags":3495,"stars":23,"repoUrl":24,"updatedAt":3506},"chat-sdk","build multi-platform chatbots with Vercel","Vercel Chat SDK expert guidance. Use when building multi-platform chat bots — Slack, Telegram, Microsoft Teams, Discord, Google Chat, GitHub, Linear — with a single codebase. Covers the Chat class, adapters, threads, messages, cards, modals, streaming, state management, and webhook setup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3496,3499,3502,3505],{"name":3497,"slug":3498,"type":15},"Agents","agents",{"name":3500,"slug":3501,"type":15},"Messaging","messaging",{"name":3503,"slug":3504,"type":15},"SDK","sdk",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:26.921901",{"slug":3508,"name":3508,"fn":3509,"description":3510,"org":3511,"tags":3512,"stars":23,"repoUrl":24,"updatedAt":3521},"deployments-cicd","manage Vercel deployments and CI\u002FCD","Vercel deployment and CI\u002FCD expert guidance. Use when deploying, promoting, rolling back, inspecting deployments, building with --prebuilt, or configuring CI workflow files for Vercel.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3513,3516,3517,3520],{"name":3514,"slug":3515,"type":15},"CI\u002FCD","ci-cd",{"name":3472,"slug":3473,"type":15},{"name":3518,"slug":3519,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-04-06T18:56:22.054263",{"slug":3523,"name":3523,"fn":3524,"description":3525,"org":3526,"tags":3527,"stars":23,"repoUrl":24,"updatedAt":3532},"env-vars","manage Vercel environment variables","Vercel environment variable expert guidance. Use when working with .env files, vercel env commands, OIDC tokens, or managing environment-specific configuration.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3528,3529,3530,3531],{"name":3469,"slug":3470,"type":15},{"name":3518,"slug":3519,"type":15},{"name":3458,"slug":3459,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:56:28.150777",29,{"items":3535,"total":3698},[3536,3554,3566,3583,3594,3607,3623,3637,3649,3668,3678,3688],{"slug":3537,"name":3537,"fn":3538,"description":3539,"org":3540,"tags":3541,"stars":3551,"repoUrl":3552,"updatedAt":3553},"next-cache-components-adoption","enable and migrate to Next.js Cache Components","Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the `cacheComponents` flag, work through a flood of blocking-prerender \u002F instant validation errors, run the `cache-components-instant-false` codemod, or decide between opting routes out with `export const instant = false` and fixing them in place.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3542,3543,3546,3549,3550],{"name":21,"slug":22,"type":15},{"name":3544,"slug":3545,"type":15},"Frontend","frontend",{"name":3547,"slug":3548,"type":15},"Migration","migration",{"name":3455,"slug":3456,"type":15},{"name":9,"slug":8,"type":15},141208,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fnext.js","2026-07-24T05:38:30.118542",{"slug":3555,"name":3555,"fn":3556,"description":3557,"org":3558,"tags":3559,"stars":3551,"repoUrl":3552,"updatedAt":3565},"next-cache-components-optimizer","optimize Next.js cache components","Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components \u002F PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next\u002Fplaywright instant() e2e and work it to green, one verified route at a time; the shipped test then guards against regression. Use when asked to make a route's navigation instant (its static shell commits immediately), fix a route whose static shell isn't prerendered\u002Fserved\u002Fprefetched, grow a route's static shell or fix its slow first paint, diagnose which Suspense boundary keeps a route out of its static shell, or write the instant() e2e guard for one. Requires Next.js 16.3+ with cacheComponents; directs an upgrade if older.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3560,3561,3562,3563,3564],{"name":21,"slug":22,"type":15},{"name":3544,"slug":3545,"type":15},{"name":3455,"slug":3456,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:10.674078",{"slug":3567,"name":3567,"fn":3568,"description":3569,"org":3570,"tags":3571,"stars":3551,"repoUrl":3552,"updatedAt":3582},"next-dev-loop","verify Next.js runtime behavior","Verify Next.js runtime behavior after editing app code. Use this skill to confirm a change actually works in a running app — not just that it compiles or type-checks. Combines \u002F_next\u002Fmcp (Next.js's view) with agent-browser (the browser's view). Requires a running `next dev`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3572,3575,3576,3577,3578,3579],{"name":3573,"slug":3574,"type":15},"Debugging","debugging",{"name":3544,"slug":3545,"type":15},{"name":3475,"slug":3476,"type":15},{"name":3455,"slug":3456,"type":15},{"name":9,"slug":8,"type":15},{"name":3580,"slug":3581,"type":15},"Web Development","web-development","2026-05-22T06:45:28.627735",{"slug":3584,"name":3584,"fn":3585,"description":3586,"org":3587,"tags":3588,"stars":3551,"repoUrl":3552,"updatedAt":3593},"next-partial-prefetching-adoption","adopt Partial Prefetching in Next.js apps","Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the `partialPrefetching` flag, opt routes in with `export const prefetch = 'partial'`, audit `\u003CLink prefetch={true}>` calls, or resolve the link-prefetch-partial and instant-shell-url-data insights.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3589,3590,3591,3592],{"name":3544,"slug":3545,"type":15},{"name":3455,"slug":3456,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-30T05:31:11.591864",{"slug":3595,"name":3595,"fn":3596,"description":3597,"org":3598,"tags":3599,"stars":3604,"repoUrl":3605,"updatedAt":3606},"turborepo","manage monorepos with Turborepo","Turborepo monorepo build system guidance. Triggers on: turbo.json, task pipelines,\ndependsOn, caching, remote cache, the \"turbo\" CLI, --filter, --affected, CI optimization, environment\nvariables, internal packages, monorepo structure\u002Fbest practices, and boundaries.\n\nUse when user: configures tasks\u002Fworkflows\u002Fpipelines, creates packages, sets up\nmonorepo, shares code between apps, runs changed\u002Faffected packages, debugs cache,\nor has apps\u002Fpackages directories.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3600,3601,3602],{"name":3514,"slug":3515,"type":15},{"name":13,"slug":14,"type":15},{"name":3603,"slug":3595,"type":15},"Turborepo",30809,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fturborepo","2026-07-30T05:32:14.920116",{"slug":3608,"name":3608,"fn":3609,"description":3610,"org":3611,"tags":3612,"stars":3620,"repoUrl":3621,"updatedAt":3622},"add-function-examples","add AI function examples for testing","Guide for adding new AI function examples, for testing specific features against the actual provider APIs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3613,3616,3619],{"name":3614,"slug":3615,"type":15},"AI SDK","ai-sdk",{"name":3617,"slug":3618,"type":15},"Testing","testing",{"name":9,"slug":8,"type":15},25670,"https:\u002F\u002Fgithub.com\u002Fvercel\u002Fai","2026-04-06T18:55:51.318866",{"slug":3624,"name":3624,"fn":3625,"description":3626,"org":3627,"tags":3628,"stars":3620,"repoUrl":3621,"updatedAt":3636},"add-harness-package","add AI SDK harness packages","Guide for adding new AI SDK harness packages. Use when creating a new @ai-sdk\u002Fharness-\u003Cname> package that adapts a coding-agent runtime to HarnessV1.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3629,3630,3631,3634,3635],{"name":3497,"slug":3498,"type":15},{"name":3614,"slug":3615,"type":15},{"name":3632,"slug":3633,"type":15},"Harness","harness",{"name":3503,"slug":3504,"type":15},{"name":9,"slug":8,"type":15},"2026-06-18T08:29:19.858737",{"slug":3638,"name":3638,"fn":3639,"description":3640,"org":3641,"tags":3642,"stars":3620,"repoUrl":3621,"updatedAt":3648},"add-provider-package","add new provider packages to AI SDK","Guide for adding new AI provider packages to the AI SDK. Use when creating a new @ai-sdk\u002F\u003Cprovider> package to integrate an AI service into the SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3643,3644,3647],{"name":3614,"slug":3615,"type":15},{"name":3645,"slug":3646,"type":15},"API Development","api-development",{"name":9,"slug":8,"type":15},"2026-04-06T18:55:47.45549",{"slug":3650,"name":3650,"fn":3651,"description":3652,"org":3653,"tags":3654,"stars":3620,"repoUrl":3621,"updatedAt":3667},"adr-skill","create and maintain architecture decision records","Create and maintain Architecture Decision Records (ADRs) optimized for agentic coding workflows. Use when you need to propose, write, update, accept\u002Freject, deprecate, or supersede an ADR; bootstrap an adr folder and index; consult existing ADRs before implementing changes; or enforce ADR conventions. This skill uses Socratic questioning to capture intent before drafting, and validates output against an agent-readiness checklist.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3655,3658,3661,3664],{"name":3656,"slug":3657,"type":15},"ADR","adr",{"name":3659,"slug":3660,"type":15},"Architecture","architecture",{"name":3662,"slug":3663,"type":15},"Documentation","documentation",{"name":3665,"slug":3666,"type":15},"Engineering","engineering","2026-04-06T18:55:50.043694",{"slug":3615,"name":3615,"fn":3669,"description":3670,"org":3671,"tags":3672,"stars":3620,"repoUrl":3621,"updatedAt":3677},"build AI features with Vercel AI SDK","Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: \"AI SDK\", \"Vercel AI SDK\", \"generateText\", \"streamText\", \"add AI to my app\", \"build an agent\", \"tool calling\", \"structured output\", \"useChat\".",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3673,3674,3675,3676],{"name":3497,"slug":3498,"type":15},{"name":3614,"slug":3615,"type":15},{"name":3438,"slug":3439,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:48.739463",{"slug":3679,"name":3679,"fn":3680,"description":3681,"org":3682,"tags":3683,"stars":3620,"repoUrl":3621,"updatedAt":3687},"capture-api-response-test-fixture","capture API response test fixtures","Capture API response test fixture.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3684,3685,3686],{"name":3645,"slug":3646,"type":15},{"name":3617,"slug":3618,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:56.374433",{"slug":3689,"name":3689,"fn":3690,"description":3691,"org":3692,"tags":3693,"stars":3620,"repoUrl":3621,"updatedAt":3697},"develop-ai-functions-example","develop AI SDK function examples","Develop examples for AI SDK functions. Use when creating, running, or modifying examples under examples\u002Fai-functions\u002Fsrc to validate provider support, demonstrate features, or create test fixtures.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[3694,3695,3696],{"name":3614,"slug":3615,"type":15},{"name":3617,"slug":3618,"type":15},{"name":9,"slug":8,"type":15},"2026-04-06T18:55:55.088956",68]