UNPKG

next-sanity

Version:
26 lines (25 loc) 549 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 * ``` */ const sanity = { /** * Sanity Live handles on-demand revalidation, so the default 15min time-based revalidation is too short */ revalidate: 31536e3 }; export { sanity }; //# sourceMappingURL=cache-life.js.map