feat: route report and drift check at server start
- the module writes #seo-routes (static paths and route patterns) from the resolved pages; options seo.routeReport, seo.pagination and seo.htmlSitemap reach the public runtime config - seo-route-report: POST /registry/routes once per process with the route-report token, one retry after 60 s on failure, nothing without a token, with the layer off or with routeReport false - seo-drift: one "[vue-seo-layer] drift:" warning per mismatch between the CMS's site answer (URL patterns, pagination, HTML sitemap paths) and the build - GET /api/__seo__/site and useSeoSite() - smoke grammar routereport and log, fixture registry route, drift run
This commit is contained in:
16
testing/fixtures/seo/site-drift.json
Normal file
16
testing/fixtures/seo/site-drift.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"site_url": "https://example.test",
|
||||
"default_locale": "pl",
|
||||
"locales": ["pl", "en"],
|
||||
"unprefixed_locale": "pl",
|
||||
"links": { "new_tab": true },
|
||||
"html_sitemap": { "enabled": true, "paths": { "pl": "/mapa", "en": "/en/sitemap" }, "page_size": 100 },
|
||||
"routes": [
|
||||
{ "type": "post", "pattern": "/posts/:slug" },
|
||||
{ "type": "journal-post", "pattern": "/wpisy/:slug" }
|
||||
],
|
||||
"root_files": [],
|
||||
"llms": false,
|
||||
"pagination": { "form": "path", "param": "page", "segments": { "pl": "strona", "en": "page" } },
|
||||
"home_crumb": { "name": "Start", "url": "https://example.test/" }
|
||||
}
|
||||
@@ -5,7 +5,7 @@
|
||||
"unprefixed_locale": "pl",
|
||||
"links": { "new_tab": true },
|
||||
"html_sitemap": { "enabled": true, "paths": { "pl": "/mapa-strony", "en": "/en/sitemap" }, "page_size": 100 },
|
||||
"routes": [{ "type": "post", "pattern": "/blog/:slug" }],
|
||||
"routes": [{ "type": "post", "pattern": "/posts/:slug" }],
|
||||
"root_files": ["google1234.html", "a1b2c3d4e5f60718293a4b5c6d7e8f90.txt"],
|
||||
"llms": true,
|
||||
"pagination": { "form": "query", "param": "page", "segments": {} },
|
||||
|
||||
Reference in New Issue
Block a user