Skip to content

Commit

Permalink
build: add speed insights
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaticivan committed Dec 16, 2024
1 parent 1ad71e8 commit 5836c99
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import { Metadata } from 'next';
import { GoogleTagManager } from '@next/third-parties/google';
import { siteMetadata } from '../lib/site-metadata';
import { SpeedInsights } from "@vercel/speed-insights/next"

export const metadata: Metadata = {
metadataBase: new URL(siteMetadata.siteUrl),
Expand Down Expand Up @@ -57,6 +58,7 @@ export default function RootLayout({

<body>{children}</body>

<SpeedInsights />
<GoogleTagManager
gtmId={siteMetadata.analytics.googleTagManager.googleTagManagerId}
/>
Expand Down
36 changes: 36 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@radix-ui/react-tooltip": "^1.1.5",
"@vercel/speed-insights": "^1.1.0",
"class-variance-authority": "^0.7.1",
"gray-matter": "^4.0.3",
"next": "^15.1.0",
Expand Down

0 comments on commit 5836c99

Please sign in to comment.