Merge main (security-perf + SEO) into docs; finish English docs and agent guide
- Resolve conflicts in analytics, consent, content, i18n, mcp and stats, keeping the docs fixes and the new code behaviour, verified against src - Translate the remaining 14 module pages, ipal-seo-check skill and script - Integrate the security-perf and SEO agent-guide text: getRobots, isPathVisible, Search & AI (DNS verification first, meta fields optional), sitemap index/cache/503, consentMode basic/advanced, policyVersion, globalOverrides, revalidatePath / buildGlobalRevalidateHook, authAccess, firstUserAdmin, allowCollectionMismatch, unknown-IP rate limit; stale claims fixed across AGENT.md, skills, frontend, developer guide, vibe - docsConsistency: pending list removed (all docs English); relative links now also check #anchors Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -85,18 +85,17 @@ export const Footer: GlobalConfig = {
|
||||
- **Company data** (name, address, NIP/ABN, phone) — the project's `company` global;
|
||||
the footer and JSON-LD read from it. Compute the copyright year in code
|
||||
(`new Date().getFullYear()`), take the name from the global.
|
||||
- **Refreshing:** a global changes on every page → an `afterChange` hook
|
||||
with `revalidatePath('/', 'layout')` (hooks.md; `buildRevalidateHook` does not handle globals):
|
||||
- **Refreshing:** a global changes on every page → `buildGlobalRevalidateHook` in `afterChange`
|
||||
(hooks.md; it calls `revalidatePath('/', 'layout')`, skips seeds/migrations and `context.disableRevalidate`;
|
||||
`buildRevalidateHook` is for collections):
|
||||
|
||||
```ts
|
||||
// src/globals/Header.ts (and Footer, Company)
|
||||
import { buildGlobalRevalidateHook } from '@intecion/ipal-kit'
|
||||
import { revalidatePath } from 'next/cache'
|
||||
|
||||
hooks: {
|
||||
afterChange: [({ context }) => {
|
||||
// outside the Next server (seed, migration) next/cache throws
|
||||
if (process.env.NEXT_RUNTIME && !context.disableRevalidate) revalidatePath('/', 'layout')
|
||||
}],
|
||||
afterChange: [buildGlobalRevalidateHook({ revalidatePath })],
|
||||
},
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user