diff --git a/next-enterprise/next.config.ts b/next-enterprise/next.config.ts index 39dfc8b..06752f3 100644 --- a/next-enterprise/next.config.ts +++ b/next-enterprise/next.config.ts @@ -3,13 +3,6 @@ import type {NextConfig} from 'next' const nextConfig: NextConfig = { experimental: { dynamicIO: true, - cacheLife: { - default: { - stale: undefined, - revalidate: 60 * 60 * 24 * 30, // 1 month, the default is 15 minutes - expire: 0xfffffffe, - }, - }, }, } diff --git a/next-enterprise/src/app/SanityLive.tsx b/next-enterprise/src/app/SanityLive.tsx index ed28aad..162f6ab 100644 --- a/next-enterprise/src/app/SanityLive.tsx +++ b/next-enterprise/src/app/SanityLive.tsx @@ -20,7 +20,7 @@ export function SanityLive() { if (signal.aborted) return router.refresh() console.log(' refreshing') - }, 1_000) + }, 3_000) } else if (event.type === 'restart') { router.refresh() } diff --git a/next-enterprise/src/sanity/client.ts b/next-enterprise/src/sanity/client.ts index 6712b86..7858942 100644 --- a/next-enterprise/src/sanity/client.ts +++ b/next-enterprise/src/sanity/client.ts @@ -3,6 +3,6 @@ import {createClient} from '@sanity/client' export const client = createClient({ projectId: 'hiomol4a', dataset: 'lcapi', - apiVersion: '2024-09-18', + apiVersion: '2024-09-19', useCdn: false, })