Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 1x | import type { VendorConfig } from "#core/registry";
interface CacheWindow {
maxAge: number;
// Off refetches an expired entry before answering, instead of serving it while it refreshes
swr: boolean;
}
export interface ContentCacheConfig {
list: CacheWindow;
item: CacheWindow;
}
export const CACHE_DEFAULTS: ContentCacheConfig = {
list: { maxAge: 60 * 60, swr: true },
item: { maxAge: 60 * 60 * 6, swr: true },
};
export interface ContentConfig {
vendor: VendorConfig;
cache: ContentCacheConfig;
}
declare module "@nuxt/schema" {
interface RuntimeConfig {
content: ContentConfig;
}
}
|