UNPKG

next-sanity

Version:
26 lines 577 B
/** * For usage with `cacheComponents: true`, and `defineLive`: * ```ts * // next.config.ts * * import type {NextConfig} from 'next' * import {sanity} from 'next-sanity/live/cache-life' * * const nextConfig: NextConfig = { * cacheComponents: true, * cacheLife: { * default: sanity, * } * } * * export default nextConfig * ``` */ declare const sanity: { /** * Sanity Live handles on-demand revalidation, so the default 15min time-based revalidation is too short */ readonly revalidate: 31_536_000; }; export { sanity }; //# sourceMappingURL=cache-life.d.ts.map