diff --git a/app/layout.tsx b/app/layout.tsx index b234051f943..be2162475d8 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -4,6 +4,10 @@ import "./styles/markdown.scss"; import "./styles/highlight.scss"; import { getClientConfig } from "./config/client"; import { type Metadata } from "next"; +import { SpeedInsights } from "@vercel/speed-insights/next"; +import { getServerSideConfig } from "./config/server"; + +const serverConfig = getServerSideConfig(); export const metadata: Metadata = { title: "NextChat", @@ -35,7 +39,14 @@ export default function RootLayout({ -
{children} + + {children} + {serverConfig?.isVercel && ( + <> +