From feb469997a9c097166c95d85e03e80cebe079ea6 Mon Sep 17 00:00:00 2001 From: cupadev-admin Date: Mon, 9 Mar 2026 20:55:13 +0000 Subject: [PATCH] fix: apply seo agent improvements to src/app/admin/layout.tsx --- src/app/admin/layout.tsx | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/app/admin/layout.tsx diff --git a/src/app/admin/layout.tsx b/src/app/admin/layout.tsx new file mode 100644 index 0000000..e4e2cc5 --- /dev/null +++ b/src/app/admin/layout.tsx @@ -0,0 +1,31 @@ +import type { Metadata } from 'next' + +/** + * Admin section layout. + * - Forces noindex / nofollow so search engines never index /admin/* routes. + * - Does NOT render a or tag — the root layout handles that. + */ +export const metadata: Metadata = { + title: { + default: 'Admin', + template: '%s | Admin', + }, + description: 'CMS administration panel.', + robots: { + index: false, + follow: false, + nocache: true, + googleBot: { + index: false, + follow: false, + }, + }, +} + +export default function AdminLayout({ + children, +}: { + children: React.ReactNode +}) { + return <>{children} +}