mirror of
https://github.com/Luchexx/wacrm.git
synced 2026-11-02 17:29:45 +00:00
29 lines
760 B
TypeScript
29 lines
760 B
TypeScript
import type { Metadata } from "next";
|
|
import { DashboardShell } from "./dashboard-shell";
|
|
|
|
// Server layout whose only job is to declare "do not index" metadata
|
|
// for the authed app. robots.ts already disallows these paths at the
|
|
// crawler-level and middleware redirects unauthenticated visitors, so
|
|
// this is belt-and-suspenders — but SEO-critical if a URL ever leaks
|
|
// via a link shared externally.
|
|
export const metadata: Metadata = {
|
|
robots: {
|
|
index: false,
|
|
follow: false,
|
|
nocache: true,
|
|
googleBot: {
|
|
index: false,
|
|
follow: false,
|
|
noimageindex: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default function DashboardLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
return <DashboardShell>{children}</DashboardShell>;
|
|
}
|