Skip to content

Commit

Permalink
fix: Add vercel speed insight
Browse files Browse the repository at this point in the history
  • Loading branch information
hampfh committed Mar 10, 2024
1 parent 505511f commit aa8127b
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@radix-ui/react-slot": "^1.0.2",
"@t3-oss/env-nextjs": "^0.9.2",
"@tanstack/react-query": "^5.20.1",
"@vercel/speed-insights": "^1.0.10",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"contentful": "^10.6.21",
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

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

7 changes: 3 additions & 4 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Providers from "@/app/providers"
import { NavigationMenu } from "@/components/shared/NavigationMenu"
import { SpeedInsights } from "@vercel/speed-insights/next"
import { DateTime } from "luxon"
import type { Metadata } from "next"
import { Bebas_Neue, Inter, Lato } from "next/font/google"
Expand Down Expand Up @@ -38,9 +38,8 @@ export default function RootLayout({
<head />
<body
className={`${inter.variable} ${bebasNeue.variable} ${lato.variable}`}>
<Providers>
{children}
</Providers>
<SpeedInsights />
<Providers>{children}</Providers>
</body>
</html>
)
Expand Down

0 comments on commit aa8127b

Please sign in to comment.