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:
Claude
2026-02-15 18:35:06 +00:00
parent 6840d2eebf
commit 45f5cc0e9e
3 changed files with 69 additions and 30 deletions

View File

@@ -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;