fix: apply seo agent improvements to src/app/admin/layout.tsx

This commit is contained in:
cupadev-admin 2026-03-09 20:55:13 +00:00
parent 6f300359ea
commit feb469997a
1 changed files with 31 additions and 0 deletions

31
src/app/admin/layout.tsx Normal file
View File

@ -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 <html> or <body> 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}</>
}