SEO: project overrides (sitemapEntries, sitemapOptions, underConstructionSeo, searchSettings fn); seo-check follows sitemap index
- createContentHelpers: sitemapEntries transform has the last word, sitemapOptions passes maxUrls/cacheControl/memoSeconds to sitemapRoute, underConstructionSeo: false turns the construction filter off - seo.searchSettings accepts a function over the default fields - ipal-seo-check: reads sitemap index parts, reports 503 sitemap, warns on missing Google/Bing verification (skip key: verification) - docs/seo.md updated Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
94e563055f
commit
dc761164d9
+16
-2
@@ -345,9 +345,21 @@ z każdego URL-a kilka linii):
|
||||
| `memoSeconds` | `300` | ile sekund proces trzyma zbudowaną listę (index i części nie budują jej od nowa); `0` = wyłączone |
|
||||
|
||||
```ts
|
||||
createSitemapRouteHandler(sitemap, { maxUrls: 5000, memoSeconds: 0 })
|
||||
createContentHelpers({ …, sitemapOptions: { maxUrls: 5000, memoSeconds: 0 } }) // sitemapRoute
|
||||
createSitemapRouteHandler(sitemap, { maxUrls: 5000, memoSeconds: 0 }) // własna trasa
|
||||
```
|
||||
|
||||
Ostatnie słowo ma projekt — `sitemapEntries` dostaje wpisy pluginu i zwraca listę do
|
||||
publikacji (dodaj adresy własnych tras, usuń, ustaw `priority`):
|
||||
|
||||
```ts
|
||||
createContentHelpers({ …,
|
||||
sitemapEntries: (entries) => [...entries, { url: `${origin}/kalkulator`, lastModified: new Date() }],
|
||||
})
|
||||
```
|
||||
|
||||
Filtr „Under construction” w sitemapie i llms.txt wyłączasz `underConstructionSeo: false`.
|
||||
|
||||
Błąd bazy w runtime → **503 + `Retry-After: 300`** (crawler wróci), nie pusta sitemapa
|
||||
z 200 („strona nie ma podstron”). Pusta odpowiedź i błąd nigdy nie idą z cache.
|
||||
Wyjątek: `next build` (`NEXT_PHASE=phase-production-build`) dalej dostaje pustą,
|
||||
@@ -1236,7 +1248,9 @@ Oba tak samo dobre dla Google — to kwestia czytelności dla człowieka, nie SE
|
||||
## Search & AI — weryfikacja Search Console, boty AI, notka llms.txt (1.13)
|
||||
|
||||
Zakładka **Site Settings → Search & AI** (włączona domyślnie; puste pola nic nie
|
||||
zmieniają; `ipalKit({ seo: { …, searchSettings: false } })` ją usuwa):
|
||||
zmieniają; `ipalKit({ seo: { …, searchSettings: false } })` ją usuwa; funkcja
|
||||
`searchSettings: (fields) => fields` dostaje pola pluginu i zwraca własne — dodaj, usuń,
|
||||
zmień etykiety; nazwy `searchVerification` / `aiCrawlers` / `llmsIntro` czytają helpery):
|
||||
|
||||
| Pole | Gdzie trafia |
|
||||
|---|---|
|
||||
|
||||
Reference in New Issue
Block a user