implement speed insights (w/ vercel)

This commit is contained in:
Aidan 2025-01-05 14:55:18 -05:00
parent e05a663fbb
commit 5cfb5c335b
2 changed files with 10 additions and 2 deletions

View file

@ -3,6 +3,7 @@ import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import '@fortawesome/fontawesome-svg-core/styles.css'
import { config } from '@fortawesome/fontawesome-svg-core'
import { SpeedInsights } from "@vercel/speed-insights/next"
config.autoAddCss = false
@ -20,7 +21,10 @@ export default function RootLayout({
}) {
return (
<html lang="en" className="dark">
<body className={`${inter.className} bg-gray-900 text-gray-100`}>{children}</body>
<body className={`${inter.className} bg-gray-900 text-gray-100`}>
{children}
<SpeedInsights />
</body>
</html>
)
}