- server/middleware/seo-root.ts proxies /robots.txt, /sitemap.xml, /sitemap-<name>.xml, /llms.txt and the verification and IndexNow key files the site answer lists in root_files, with the backend's status, content type and X-Robots-Tag; a backend failure is 503 Retry-After 60 - server/lib/site.ts caches GET /_seo/api/v1/site (300 s, cleared by the purge); a backend without it (404) keeps the v0.1.1 behaviour: no root proxies, the verification lookup by name - the 404 report and the verification lookup honour seo.cms and rootFiles - smoke runs for the layer off (seo.cms and the v0.1.1 enabled switch), the CMS down (fail open) and no 404 token; npm run purge:check
27 lines
1.6 KiB
JSON
27 lines
1.6 KiB
JSON
{
|
|
"name": "vue-seo-layer",
|
|
"version": "0.1.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "./nuxt.config.ts",
|
|
"scripts": {
|
|
"dev": "nuxi dev .playground",
|
|
"build:playground": "nuxt build .playground",
|
|
"test": "node --test --test-reporter=tap tests/*.test.ts",
|
|
"dev:prepare": "nuxt prepare .playground",
|
|
"smoke:ssr": "node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect.txt --no-site && node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect-seo.txt && node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect-seo-off.txt --env NUXT_PUBLIC_SEO_CMS=false && node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect-seo-off.txt --env NUXT_PUBLIC_SEO_ENABLED=false && node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect-seo-down.txt --env NUXT_SEO_API_BASE=http://127.0.0.1:1/_seo/api/v1 && node testing/smoke-ssr.mjs --output .playground/.output --fixtures testing/fixtures --expect testing/expect-seo-notoken.txt --env NUXT_SEO_NOTFOUND_TOKEN=",
|
|
"purge:check": "node testing/purge-check.mjs --output .playground/.output --fixtures testing/fixtures --path /blog/lwia-grzywa && node testing/purge-token-check.mjs --output .playground/.output --fixtures testing/fixtures --path /blog/lwia-grzywa"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.18"
|
|
},
|
|
"peerDependencies": {
|
|
"nuxt": "4.4.8"
|
|
},
|
|
"devDependencies": {
|
|
"nuxt": "4.4.8",
|
|
"typescript": "5.9.3",
|
|
"vue": "3.5.35"
|
|
}
|
|
}
|