fix: connect Sanity CMS data to live site with revalidation
- Disable Sanity CDN cache so published changes appear immediately - Add revalidate=60 to page so Next.js refreshes data every 60s - Wire AboutMe component to use siteSettings from Sanity (name, bio, photo, address, map coordinates) https://claude.ai/code/session_01H2aRGDaKgarPvhay2HxN6Y
This commit is contained in:
@@ -9,7 +9,7 @@ export const sanityClient: SanityClient | null = projectId
|
||||
projectId,
|
||||
dataset: process.env.NEXT_PUBLIC_SANITY_DATASET || "production",
|
||||
apiVersion: "2024-01-01",
|
||||
useCdn: true,
|
||||
useCdn: false,
|
||||
})
|
||||
: null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user