chore: installed speed insights

This commit is contained in:
Damien Ostler 2024-05-27 23:47:49 -04:00
parent e8161fc226
commit b2f700280a
3 changed files with 38 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { GeistSans } from "geist/font/sans"; import { GeistSans } from "geist/font/sans";
import "./globals.css"; import "./globals.css";
import NavigationBar from "@/components/NavigationBar"; import NavigationBar from "@/components/NavigationBar";
import { SpeedInsights } from "@vercel/speed-insights/next"
const defaultUrl = process.env.VERCEL_URL const defaultUrl = process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}` ? `https://${process.env.VERCEL_URL}`
: "http://localhost:3000"; : "http://localhost:3000";
@ -22,6 +22,7 @@ export default function RootLayout({
<body className="bg-background text-foreground"> <body className="bg-background text-foreground">
<div className="w-full fixed z-30 text-white white"> <div className="w-full fixed z-30 text-white white">
<NavigationBar/> <NavigationBar/>
<SpeedInsights/>
</div> </div>
<main className="min-h-screen flex flex-col items-center bg-gradient-to-r from-neroshi-blue-900 to-neroshi-blue-950 overflow-hidden"> <main className="min-h-screen flex flex-col items-center bg-gradient-to-r from-neroshi-blue-900 to-neroshi-blue-950 overflow-hidden">
{children} {children}

35
package-lock.json generated
View File

@ -8,6 +8,7 @@
"@supabase/ssr": "latest", "@supabase/ssr": "latest",
"@supabase/supabase-js": "latest", "@supabase/supabase-js": "latest",
"@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/aspect-ratio": "^0.4.2",
"@vercel/speed-insights": "^1.0.11",
"autoprefixer": "10.4.17", "autoprefixer": "10.4.17",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"framer-motion": "^11.2.6", "framer-motion": "^11.2.6",
@ -973,6 +974,40 @@
"@types/node": "*" "@types/node": "*"
} }
}, },
"node_modules/@vercel/speed-insights": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/@vercel/speed-insights/-/speed-insights-1.0.11.tgz",
"integrity": "sha512-l9hzSNmJvb2Yqpgd/BzpiT0J0aQDdtqxOf3Xm+iW4PICxVvhY1ef7Otdx4GXI+88dVkws57qMzXiShz19gXzSQ==",
"hasInstallScript": true,
"peerDependencies": {
"@sveltejs/kit": "^1 || ^2",
"next": ">= 13",
"react": "^18 || ^19",
"svelte": "^4",
"vue": "^3",
"vue-router": "^4"
},
"peerDependenciesMeta": {
"@sveltejs/kit": {
"optional": true
},
"next": {
"optional": true
},
"react": {
"optional": true
},
"svelte": {
"optional": true
},
"vue": {
"optional": true
},
"vue-router": {
"optional": true
}
}
},
"node_modules/acorn": { "node_modules/acorn": {
"version": "7.4.1", "version": "7.4.1",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",

View File

@ -9,6 +9,7 @@
"@supabase/ssr": "latest", "@supabase/ssr": "latest",
"@supabase/supabase-js": "latest", "@supabase/supabase-js": "latest",
"@tailwindcss/aspect-ratio": "^0.4.2", "@tailwindcss/aspect-ratio": "^0.4.2",
"@vercel/speed-insights": "^1.0.11",
"autoprefixer": "10.4.17", "autoprefixer": "10.4.17",
"clsx": "^2.1.1", "clsx": "^2.1.1",
"framer-motion": "^11.2.6", "framer-motion": "^11.2.6",