Revalidate the site layout when a global is saved

buildGlobalRevalidateHook + ipalKit({ revalidatePath }) wires it into the
plugin's globals; menus, consent texts and analytics IDs no longer stay
stale for the whole ISR window.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-22 17:09:00 +02:00
co-authored by Claude Opus 5.5
parent 7c05a1dba9
commit 7967453f57
7 changed files with 98 additions and 5 deletions
+2 -1
View File
@@ -3,7 +3,8 @@
export { normalizeFilenameHook } from '../media/index.js'
export { buildAutoFillMetaHook, validateFaviconField } from '../seo/index.js'
export { buildCrossLocaleFieldSync } from './buildCrossLocaleFieldSync.js'
export { buildRevalidateHook } from './buildRevalidateHook.js'
export { buildGlobalRevalidateHook, buildRevalidateHook } from './buildRevalidateHook.js'
export type { RevalidatePathFn } from './buildRevalidateHook.js'
export { buildPreventDeleteSystemPage } from './preventDeleteSystemPage.js'
export { setPublishedAtHook } from './setPublishedAt.js'