Skip to content

Commit

Permalink
feat: add vercel SpeedInsights
Browse files Browse the repository at this point in the history
  • Loading branch information
Bakhaw committed Jan 13, 2024
1 parent e1b6aae commit e84981c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import type { Metadata, Viewport } from "next";
import type { Metadata } from "next";
import { SpeedInsights } from "@vercel/speed-insights/next";

import localFont from "next/font/local";

Expand Down Expand Up @@ -58,7 +59,10 @@ function RootLayout({ children }: Props) {
>
<SessionProvider>
<Providers>
<Layout>{children}</Layout>
<Layout>
{children}
<SpeedInsights />
</Layout>
</Providers>
</SessionProvider>
</body>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"@tailwindcss/container-queries": "^0.1.1",
"@tanstack/react-query": "^5.17.9",
"@tanstack/react-query-devtools": "^5.17.9",
"@vercel/speed-insights": "^1.0.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.0.0",
"colorthief": "^2.4.0",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e84981c

Please sign in to comment.