Added Vercel Analytics and Speed Insights

This commit is contained in:
Ahmad 2024-03-26 20:49:35 -04:00
parent 191c8c1832
commit 1f36235498
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
3 changed files with 72 additions and 2 deletions

View file

@ -1,5 +1,8 @@
import type { Metadata } from 'next';
import { SpeedInsights } from '@vercel/speed-insights/next';
import { Analytics } from '@vercel/analytics/react';
import { Inter } from 'next/font/google';
import type { Metadata } from 'next';
import './globals.css';
import { siteConfig } from '@/config/site';
@ -26,7 +29,11 @@ export default function RootLayout({
}) {
return (
<html lang='en'>
<body className={inter.className}>{children}</body>
<body className={inter.className}>
<SpeedInsights />
{children}
<Analytics />
</body>
</html>
);
}