SEO: DNS domain verification is the default path; seo-check reports a missing verification tag as INFO only

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-10-22 17:21:43 +02:00
co-authored by Claude Opus 5.5
parent 104cdbfd4c
commit b15e82546e
3 changed files with 13 additions and 7 deletions
+3 -3
View File
@@ -35,9 +35,9 @@ Sprawdza **działającą** aplikację, nie kod — dokładnie to, co dostaje Goo
| sitemap index parts not 200 | serwis > `maxUrls` (10 000) → `/sitemap.xml` to index; części `?part=N` muszą odpowiadać 200 — własna trasa bez obsługi `part` albo cache CDN ze starą liczbą części |
| MCP not answering initialize | brak `src/app/api/mcp/route.ts` albo Cloudflare Access bez Bypass (mcp.md) |
3. `no search-console verification meta tag` (WARNING) — wklej kod w **Site Settings →
Search & AI** (Google Search Console, Bing Webmaster). Weryfikacja przez DNS → dopisz
`verification` do `ipal-audit-skip:` w `AGENTS.md`.
3. `no verification meta tag` (INFO — nie liczy się do błędów ani ostrzeżeń) — przy
weryfikacji domeny przez DNS (zalecana) to poprawny stan, nic nie rób. Tylko przy
weryfikacji „prefiks URL” wklej kod w **Site Settings → Search & AI**.
`robots.txt blocks AI bots` — sprawdź też Site Settings → Search & AI → AI crawlers
(gdy projekt używa `getRobots`, redaktor mógł zmienić politykę).
4. `[WARNING]` oceń: brak opisu / zduplikowane tytuły to **treść w panelu** —
@@ -29,7 +29,8 @@ let warnings = 0
const findings = []
const report = (level, title, rule, items = []) => {
if (level === 'ERROR') errors += Math.max(items.length, 1)
else warnings += Math.max(items.length, 1)
else if (level === 'WARNING') warnings += Math.max(items.length, 1)
// INFO: shown, never counted — a note, not a problem
findings.push({ level, title, rule, items })
}
const get = async (path, opts = {}) => {
@@ -225,14 +226,15 @@ if (issues.noLinks.length) report('WARNING', 'pages without internal links', 'li
if (!skipped('jsonld') && issues.jsonLd.length) report('ERROR', 'no JSON-LD structured data', '<JsonLdGraph> WebSite + Organization in [locale]/layout.tsx (AGENT.md §0b.4)', issues.jsonLd.slice(0, 5))
if (!skipped('markdown') && issues.mdAlt.length) report('WARNING', 'no text/markdown alternate link in head', 'createContentHelpers({ markdownAlternate: true }) (AGENT.md §0b.6)', issues.mdAlt.slice(0, 3))
// --- 4b. Search Console / Bing verification (Site Settings → Search & AI) ----
// --- 4b. Search Console / Bing verification tags (Site Settings → Search & AI) ----
// INFO only: domain (DNS) verification — the recommended route — leaves the tags empty.
if (!skipped('verification') && sample.length) {
const page = await get(sample[0]).catch(() => null)
const head = page?.text.split(/<\/head>/i)[0] ?? ''
const missing = [['google-site-verification', 'Google Search Console'], ['msvalidate.01', 'Bing Webmaster Tools']]
.filter(([name]) => !new RegExp(`<meta[^>]+name="${name}"`, 'i').test(head))
.map(([, label]) => label)
if (missing.length) report('WARNING', 'no search-console verification meta tag', 'paste the code in Site Settings → Search & AI (or verify by DNS and add `verification` to ipal-audit-skip)', missing)
if (missing.length) report('INFO', 'no verification meta tag (fine with DNS / domain verification)', 'only for URL-prefix verification: paste the code in Site Settings → Search & AI', missing)
}
// --- 5. 404 ---------------------------------------------------------------
+5 -1
View File
@@ -1266,6 +1266,10 @@ Console — zapisuje się tylko kod; coś, co nie jest prostym tokenem, jest odr
dodają `verification` same — zero kodu w projekcie. Własny generator:
`verificationFrom(settings)` → `Metadata.verification`; robots: `robotsOptionsFrom(settings)`.
**Weryfikacja domeny przez DNS (zalecana)** — rekord TXT u rejestratora, plugin nic
nie robi, pola weryfikacji zostają puste i nic nie ostrzega. Pola są tylko dla
weryfikacji „prefiks URL” (tag HTML).
Po wklejeniu kodu: Search Console → Zweryfikuj. Strona musi być zbudowana dynamicznie
albo po rewalidacji (ISR), żeby nowy tag był w HTML. Weryfikacja DNS dalej działa
niezależnie — pola zostaw puste.
@@ -1277,7 +1281,7 @@ Migracja: nowe kolumny w `site_settings` — projekt na Postgresie generuje migr
Kliknięcia/zapytania z Search Console w adminie wymagają konta usługi Google (JSON z
kluczem prywatnym) dodanego jako użytkownik w usłudze GSC, i biblioteki `googleapis`
albo podpisu JWT. Plugin tego (jeszcze) nie robi — dane czytasz w samej Search Console.
albo podpisu JWT. Plugin tego nie robi (decyzja: weryfikacja domeny, dane w samej Search Console).
## GEO — co plugin rozumie przez „widoczność w AI” (założenia)