The root layout was stamping the homepage title and production root onto every page. Routes now supply a page segment through one em-dash template, canonicals follow the request path, and non-production hosts disallow crawlers. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
505 B
TypeScript
14 lines
505 B
TypeScript
import type { Metadata } from "next";
|
|
import type { ReactNode } from "react";
|
|
import CreateFlowLayoutGate from "./CreateFlowLayoutGate";
|
|
import messages from "../../../messages/en/index";
|
|
import { routeMetadata } from "../../../lib/siteMetadata";
|
|
|
|
export const metadata: Metadata = routeMetadata("/create", {
|
|
title: messages.metadata.create.title,
|
|
});
|
|
|
|
export default function CreateFlowLayout({ children }: { children: ReactNode }) {
|
|
return <CreateFlowLayoutGate>{children}</CreateFlowLayoutGate>;
|
|
}
|