Skip to content

Commit 11dec33

Browse files
committed
testing Speedinsights form vercel
1 parent 5d64efb commit 11dec33

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

Diff for: app/layout.tsx

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { Inter } from "next/font/google";
33
import { ReactNode } from "react";
44
import Toaster from "./toaster";
55
import { Analytics } from "@vercel/analytics/react";
6+
import { SpeedInsights } from "@vercel/speed-insights/next"; // Import SpeedInsights
67

78
const inter = Inter({ subsets: ["latin"] });
89

910
export const metadata = {
1011
title: "Agent42",
11-
description:
12-
"OpenAI Assistant",
13-
metadataBase: 'https://mydomain.com'
12+
description: "OpenAI Assistant",
13+
metadataBase: 'https://mydomain.com'
1414
};
1515

1616
export default function RootLayout({ children }: { children: ReactNode }) {
@@ -19,8 +19,9 @@ export default function RootLayout({ children }: { children: ReactNode }) {
1919
<body className={inter.className}>
2020
{children}
2121
<Toaster />
22+
<SpeedInsights /> {/* Add SpeedInsights */}
2223
</body>
2324
<Analytics />
2425
</html>
2526
);
26-
}
27+
}

Diff for: package-lock.json

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"@upstash/ratelimit": "^0.4.4",
4747
"@vercel/analytics": "^1.1.1",
4848
"@vercel/kv": "^1.0.0",
49+
"@vercel/speed-insights": "^1.0.1",
4950
"ai": "^2.2.23",
5051
"autoprefixer": "^10.4.16",
5152
"class-variance-authority": "^0.7.0",

0 commit comments

Comments
 (0)