feat: redesign CMS and unify German admin UI
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Optional, dev-only SEO sanity check — NOT part of the build or deploy
|
||||
* Optional, dev-only SEO sanity check - NOT part of the build or deploy
|
||||
* pipeline, never blocks production. Run manually:
|
||||
*
|
||||
* npm run seo:check
|
||||
@@ -34,8 +34,8 @@ async function checkCollection(
|
||||
}
|
||||
|
||||
for (const doc of docs as { slug?: string | null; title?: string; seo?: { description?: string | null } | null }[]) {
|
||||
if (!doc.title?.trim()) warn(`Dokument ohne Titel (slug: ${doc.slug ?? "—"}).`);
|
||||
if (!doc.slug?.trim()) warn(`Dokument ohne Slug: „${doc.title ?? "—"}“.`);
|
||||
if (!doc.title?.trim()) warn(`Dokument ohne Titel (slug: ${doc.slug ?? "-"}).`);
|
||||
if (!doc.slug?.trim()) warn(`Dokument ohne Slug: „${doc.title ?? "-"}“.`);
|
||||
}
|
||||
|
||||
if (docs.length === 0) console.log(" (keine Einträge)");
|
||||
@@ -60,7 +60,7 @@ async function run() {
|
||||
await checkCollection(payload, "posts", "Aktuelles");
|
||||
await checkMedia(payload);
|
||||
|
||||
console.log(`\n${warnings === 0 ? "Keine Auffälligkeiten gefunden." : `${warnings} Hinweis(e) gefunden — siehe oben.`}`);
|
||||
console.log(`\n${warnings === 0 ? "Keine Auffälligkeiten gefunden." : `${warnings} Hinweis(e) gefunden - siehe oben.`}`);
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user