@astrojs/vercel
Version:
Deploy your site to Vercel
10 lines (9 loc) • 363 B
TypeScript
import type { CacheProviderConfig } from 'astro';
/**
* Configure the Vercel CDN cache provider for Astro route caching.
*
* Uses `Vercel-CDN-Cache-Control` and `Vercel-Cache-Tag` headers
* for Vercel's edge cache, and `invalidateByTag()` from `@vercel/functions`
* for tag-based invalidation.
*/
export declare function cacheVercel(): CacheProviderConfig;